• Advertisement


This topic is now archived and is closed to further replies.

PHP session problems

This topic is 5039 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone. I am working on developing a webstore for a friend of mine. http://www.houseofslack.net/dysfunction2 and I am having this peculiar problem. When I get to my cart.php file through posting a form (for example, when you click on an item, and click add to cart), it rememembers my session variable $olist and cart.php displays all the items in that array. here''s the weird thing though, if I just hyperlink cart.php from a page, it keeps the same session id and everything, but there is nothing in $olist. it seems to clear it out. I checked my code on cart.php and there''s no session_destroy() or resetting of the $olist variable. so I''m wondering if this is a common problem because it just doesn''t make any sense to me. anyone else run into this problem and fix it?

Share this post

Link to post
Share on other sites

  • Advertisement