Your change to the setting would have to happen *before* the session_start()
and if php.ini is set to always do sessions, you can't get in before that.

You may be able to use http://php.net/setcookie to provide a time-limit for
the session id cookie so that it won't expire when the browser closes.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Martin <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 23, 2001 4:36 AM
Subject: Making session last


> Hello!
>
> The sessions-functions works really fine. But I got one Problem: How can
> I make the php-session last more then a browser-session? When the users
> closes the browser, the php-session is lost, but I want to save it for
> some days and the user should get the thame session, when he returns.
>
> I have no access to the php.ini-file. session_set_cookie_params (int
> lifetime) didn't work.
>
> Any ideas?
>
> Martin
>
>


-- 
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