Re: Making session last

From: Date: Sun, 23 Sep 2001 20:08:12 +0000
Subject: Re: Making session last
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68453@lists.php.net to get a copy of this message
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 richard@zend.com address is an endangered species -- Use ceo@l-i-e.com 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 <martin@radiok2r.de> Newsgroups: php.general To: <php-general@lists.php.net> 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 > >

« previous php.general (#68453) next »