[thelist] php session variable needs to persist

Garth Hagerman hagerman at mcn.org
Wed Nov 9 12:35:14 CST 2005


Hi again-
Thanks to all who replied. I gave up (perhaps too easily) on the 
sessions-only solution and just set a persistent cookie and logged the 
referrer to a database. While that is rather inelegant for this static 
site, it does have the advantages of working and not introducing the 
browser compatibility issues of popups and javascript. Now that I've 
got the cookie-db method operational, I learn about  
session_set_cookie_params(900) . That sounds like the simple solution I 
was looking for. I'll need to re-visit this project in a few days when 
I finish some other high priority projects. For now, I've got the thing 
working, albeit in an unnecessarily complicated way.

  thanks again
  Garth

                            * * * * * * * * * * * * * * * *
                                my online portfolio

                           http://garthhagerman.com/




More information about the thelist mailing list