PHPSESSID expires before my cookie
- From: FamB <da2d460@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 12:16:17 +0200
I have the following code:
$expireTime = 60*60*24*364; // 365 days session_set_cookie_params($expireTime); // seconds session_start();
My problem is, that my PHPSESSID expires before my cookie. I have then added the fowlloing code:
$expireTime = 60*60*24*364; // 365 days
session_set_cookie_params($expireTime); // seconds
session_cache_limiter('private');
session_cache_expire(8760); // minutes
session_start();Now my cookie expires after the browser closes instead of the 365 days!?
How do I get the same expiration on both my cookie and my PHPSESSID on my server?
I am running with PHP5 on a FreeBSD server. .
- Prev by Date: Re: How long is too long for a cgi script?
- Next by Date: Re: Help needed
- Previous by thread: POST Method
- Next by thread: Re: Excluding records from repeat region in PHP
- Index(es):