Re: Session-problem

From: Date: Fri, 24 Nov 2000 13:49:49 +0000
Subject: Re: Session-problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26952@lists.php.net to get a copy of this message
Bjorn Andre Lie - LightWare ans [Bjorn.Andre.Lie@LightWare.no] wrote: > > Hi ! > > I have made a PHP-script wich creates a session. This is (first part) of my > script : > > session_start(); > $ses_basket_id = $PHPSESSID; > session_register("ses_basket_id"); I think this will work if you just reverse the order of these statements to: session_start(); session_register("ses_basket_id"); ### this one first $ses_basket_id = $PHPSESSID; ### this one second HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com > > Problem : > When I load the script into the browser (IE5.5) the session_ID is not > stored in the coockie. When I reload the page the Session_ID is stored and > everything is working fine. Should it be like this? To solve the problem, > my script reloads itself until the session_ID is OK - no a good soloution I > believe. > > Running : PHP4.03 / Apache 1.3.12 Win32. > > Regards, > Bjørn André Lie > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#26952) next »