That's not what a session if for. You'll have to set your own cookie to
remember who the person is, and start a new session for them when they
return.

---John Holmes...

> -----Original Message-----
> From: Justin French [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 4:58 AM
> To: php
> Subject: [PHP] session expiry
> 
> Hi all,
> 
> I'm a little confused after reading some of the user notes on the
session
> pages in the manual.
> 
> I have a perfectly functioning script which i'm happy with which is
> managing
> all my sessions.  However, the sessions ends when the browser is
closed
> (or
> they log out).
> 
> I wish to modify the login form so that they can say "remember me" or
> "don't
> remember me" pull-down.
> 
> So, I need to know what to do in my session to have the session cookie
> last
> longer (say 30 days???).
> 
> I thought it might be something like:
> 
> <?
> $expireTime = 60*60*24*30; // 30 days
> session_set_cookie_params($expireTime);
> session_start();
> ?>
> 
> or (last two lines swapped):
> 
> <?
> $expireTime = 60*60*24*30; // 30 days
> session_start();
> session_set_cookie_params($expireTime);
> ?>
> 
> But it doesn't seem to be working.  Any ideas?
> 
> 
> Justin French
> --------------------
> Creative Director
> http://Indent.com.au
> --------------------
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to