Re: Cookie Lifetime for SessionID
| From: | Brian Clark | Date: | Mon, 13 Nov 2000 02:29:58 +0000 |
| Subject: | Re: Cookie Lifetime for SessionID | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24900@lists.php.net to get a copy of this message | ||
Matt wrote:
I know that when you run session_start() it sets/gets the sessionid from a cookie (if you have that setup in PHP, which I do). I also know that the lifetime of these is generally zero, until the browser closes, but is there a way to set the lifetime of the sessionID when I call session_start()?Maybe this'll help.. void session_set_cookie_params (int lifetime [, string path [, string domain]]) http://www.php.net/manual/html/function.session-set-cookie-params.html -Brian