Date: 01/04/01
- Next message: Padraic Renaghan: "[phplib] REPOST: PHP 4.0.4 problem with templates"
- Previous message: Max A. Derkachev: "Re[2]: [phplib] php4.0.4 and phplib template problems."
- In reply to: Sanjay Arora: "[phplib] Getting previous session id..."
- Next in thread: abdel: "[phplib] session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Padraic Renaghan: "[phplib] REPOST: PHP 4.0.4 problem with templates"
- Previous message: Max A. Derkachev: "Re[2]: [phplib] php4.0.4 and phplib template problems."
- In reply to: Sanjay Arora: "[phplib] Getting previous session id..."
- Next in thread: abdel: "[phplib] session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

