Session Array Different On Different Pages With Same SESSID
Posted: Thu Sep 30, 2004 1:35 pm
Sorry to be thick, but could someone explain to me why this is? I've got two different authentication systems on my site: one for a shopping cart/ordering system, and one for a support/product system. I register session variables for each, to keep track of the user's login status, shopping cart contents, etc.
My problem is I'd like to access session variables from one area in another, however the session variables from one aren't available in another. I've checked the $_SESSION array on the respective pages and it only contains the variables for the area in which I am at that time. I've checked the session ids to make sure they are the same in both areas (via session_id()) and they are the same session.
Lastly, I can go freely back and forth between the shopping cart and the other area and their respective session variables are retained and available.
I'm baffled.
My problem is I'd like to access session variables from one area in another, however the session variables from one aren't available in another. I've checked the $_SESSION array on the respective pages and it only contains the variables for the area in which I am at that time. I've checked the session ids to make sure they are the same in both areas (via session_id()) and they are the same session.
Lastly, I can go freely back and forth between the shopping cart and the other area and their respective session variables are retained and available.
I'm baffled.