PHP Session headache
Posted by: s007767
Posted on: 2005-03-28 18:37:00
I am in the habit of storing a class object in the session for members only areas and checking for the existence of that object to validate a user's access to a particular page. This has worked great for me until now. I have one domain hosted by Dreamhost where this does not work. When I retrieve the object from the $_SESSION it is null. I have two other domains hosted by Dreamhost currently using this validation method and have used it on other domains that are now defunct. I am at a loss to explain why this is not working. If I retrieve the object on the same page that I first register the variable, it returns the object as I expect. Every page after that returns null. Has anyone else run into this? Does anyone have any suggestions? I have spend hours trying to debug this and I am at my wit's end.
Any help is greatly appreciated.
-Sean