It seems to me that You may have a problem with Your
header("Cache-control: private");
Theres always a cookie in the clients computer to keep track of the session ID.
What I normaly do in cases like this is starting from scratch. Crate only 3 empty pages and get them to show the sessionvars...
I do not understand why You, after first starting the session, unset id an destroy it?
If You destroy Your session You actualy don't have it anymore. So retriving information from it won't work.
Normaly a session shall live untill the user lives You site. I put my destroy statement in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.