PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
are these under different sub-domains? depending on your session settings, and if the sessions are started on differing subdomains, the domain setting will vary, and thus create 2 differing cookies.