RE: [PHP] Sessions not remembered through...browser Refresh

From: Date: Fri, 06 Oct 2000 15:31:47 +0000
Subject: RE: [PHP] Sessions not remembered through...browser Refresh
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18915@lists.php.net to get a copy of this message
At 5:01 PM +0200 10/6/00, Sascha Schumann wrote: >.... > The URL rewriter rewrites HTML, not HTTP headers. > > header("Location: somepage.php3?".SID); > > - Sascha I've got a situation where my shopping cart works great as long as the user doesn't click the browser Refresh button. If they only use my page links, all the info is passed perfectly. However, even if the cart_ID and so forth is in the URL, clicking Refresh clears the session, leaving the shopping cart empty! (of course, it doesn't clear the mySQL table, but the cart_ID is lost...) ??? My header includes: <?php global $debug; $debug=''; ini_alter('register_globals', true); session_register("cart_ID"); session_register("referring_URL"); session_register("customer_ID"); session_register("my_customer"); session_register("eMail"); setcookie ("msns_cart","$cart_ID",time()+(5*24*3600),"shopping_cart/"); ... and the form contains this: .... $my_action="UpdateCart=1&".session_name()."=".session_ID()."&cart_ID=$cart_ID"; $header.= <<<END_HEADER <form name="update_cart" action="$PHP_SELF?$my_action" method="post"> .... END_HEADER; Any pointers appreciated! PF -- AzByCx DwEvFu GtHsIr JqKpLo MnNmOl PkQjRi ShTgUf VeWdXc YbZa&@ Peter Fraterdeus http://www.midsummernightstamps.com Magical Images from the Moon's Garden! Type on the Edge of History; In Search of the Wild Photon, &c. http://www.dezinecafe.com/fraterdeus BookSense http://www.booksense.com Independent local booksellers on the web.

« previous php.general (#18915) next »