Re: [phplib] Getting previous session id... From: Max A. Derkachev (kot <email protected>)
Date: 01/04/01

Hello Sanjay,

Friday, January 05, 2001, 12:49:16 AM, you wrote:

SA> How do store my session id to a normal cookie (not the session cookie) so
SA> that I can read that session id on the visitor's next visit.

SA> How many ways can this be done? Pros & Cons?

One way - set $sess->lifetime to any positive number. That number is a
number of minutes the cookie is alive. If lifetime is 0, the cookie is
a session cookie.
About pros and cons. If the gc_time is less then lifetime, the session
identified by the cookie could be obsolete - it might be deleted after
gc_time minutes, and you'll get a session id pointing to nothing.

-- 
Best regards,
Max A. Derkachev mailto:kot <email protected>
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>