Forum Moderators: coopster
I'm using sessions to maintain a user's login state. It all works fine on my local machine where I built the webapp but sessions aren't carrying from page to page once I port the webapp to my server.
I did a couple tests - I can set and retrieve a session value on the same page...but I cannot set it on one page and retrieve it from another page.
Any thoughts would be appreciated...the techs at my hosting company seem to be stumped. :-\
Thanks.
Actually - I've been reading some about this ... sounds like this can be an issue with directory permissions where PHP apparently writes to store this data? Apparently its *not* a RAM based thing? Anyway - I'm looking into this now.
session.save_path is the variable your looking for alternatively session.cookie_path
On your local machine using your local web server you will have rights to any directory on the Hosts servers this is likely to be different. I would have thought that the hosts would have this already setup though.
You can check these directories on the host by uploading a page that has PHPinfo() on it.