RE: [PHP] Session problem

From: Date: Fri, 16 Nov 2001 14:48:50 +0000
Subject: RE: [PHP] Session problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74878@lists.php.net to get a copy of this message
Nope. That is just the problem. session_destroy() only destroys the data inside the session. Not the id. But i actually solved it now. I am using the same algorithm as php itself to create a new id everytime the page is loaded: session_id( md5( uniqid( "", 1 ) ) ); session_start(); - Daniel > -----Original Message----- > From: R'twick Niceorgaw [mailto:rtwick@niceorgaw.com] > Sent: den 16 november 2001 15:40 > To: Daniel Alsén > Subject: Re: [PHP] Session problem > > > I think you can set a new session id using session_start() > so if you need a new id just destroy the old one using session_destroy() > then call sessio_start(your new id) and that should work fine now. > > ----- Original Message ----- > From: "Daniel Alsén" <d@mindbash.com> > To: "PHP" <php-general@lists.php.net> > Sent: Friday, November 16, 2001 9:05 AM > Subject: [PHP] Session problem > > > > Hi, > > > > i am writing a simple postcard-script. I use php 4 sessions and > stores the > > data in MySql with the sessionid as a unique id for the card. > > > > The problem is - i can´t send more than one card with the same > id. I can´t > > find any way to get a new session id without closing the browser. In the > > manual there only seems to be functions to unset or unregister > the actual > > data inside the session - not the id itself. > > > > Any ideas? > > > > Regards > > # Daniel Alsén | www.mindbash.com # > > # d@mindbash.com | +46 704 86 14 92 # > > # ICQ: 63006462 | # > > > > > > -- > > 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 (#74878) next »