Re: session_set_cookie_params

From: Date: Tue, 29 Jul 2003 22:26:33 +0000
Subject: Re: session_set_cookie_params
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157462@lists.php.net to get a copy of this message
* Thus wrote Hank TT (no_spam@lomaji.com): > Hi, > > I've read the official manual on session handling, as well as the section in > "PHP Developer's Cookbook" (2/e, Hughes & Zmievski). But I still cannot > make a cookie persist across browser sessions -- very frustrating. > > I use PHP 4.1.1 running as a CGI in Win32. > > Here is a snippet: > > ====================== > $lifetime = time() + 8600; > > session_name('app'); > session_start(); > .... > session_set_cookie_params ($lifetime, '', '.site.com'); > // session_get_cookie_params returns the expected values If possible try setting the cookie params before session start. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#157462) next »