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 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
Wanna help me out?  Like Music?  Buy a CD:
Volunteer a little time:
----- Original Message -----
From: Martin <[EMAIL PROTECTED]>
Newsgroups: php.general
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 (
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