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:[EMAIL PROTECTED]]
> 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" <[EMAIL PROTECTED]>
> To: "PHP" <[EMAIL PROTECTED]>
> 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 #
> > # [EMAIL PROTECTED]  | +46 704 86 14 92 #
> > # ICQ: 63006462   |                  #
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to