Re: session_id()

From: Date: Fri, 07 Dec 2001 09:14:17 +0000
Subject: Re: session_id()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-77008@lists.php.net to get a copy of this message
This is most probably because PHP sessions use browser cookies to store data - thus each browser would have a different session id, as they all store their cookies in separate locations on your PC's hard drive. Regards -- Scott ----- Original Message ----- From: "Gede Gilijk" <gede.e.dharmika@astra-honda.com> To: <php-general@lists.php.net> Sent: Friday, December 07, 2001 10:12 AM Subject: [PHP] session_id() > This is a simple autentification script using session > I try to echo the session_id(). > But to my surprise, the value of session_id() is different - in > configuration - > if I use difference browser. > > IE : > 9ff68d81039d9ece3ba9840328b91488 > > Opera : > 7aa4895172b5a4785c9fb754eaf792aa > > NN : > 1007630964 > > Anybody face this thing ? > > <? > session_start(); > > echo "<h1>Members only</h1>"; > > // Check session variable > if (session_is_registered("valid_user")) > { > echo "<p>You log in as $valid_user.</p>"; > $sess_id = session_id(); > echo "$sess_id<br>"; > } else { > echo "<p>You have not login yet</p>"; > } > > echo "<a href=\"authmain.php\">Back to main page</a>"; > > ?> > > Regards, > > Gede Gilijk > > > > -- > 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 (#77008) next »