Re: cache_limiter & cache_expire

From: Date: Mon, 05 Jan 2004 01:20:04 +0000
Subject: Re: cache_limiter & cache_expire
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-173716@lists.php.net to get a copy of this message
Eli Hen wrote:
Hello All, I would like to do that the session will expire after X minutes, and the page at the client will expire after Y minutes. How can I do that? I understand that session_cache_limiter() function determines who can cache the page:
- pulic:        proxies and clients.
- private:    clients.
- nocache: no-one. But session_cache_expire() function sets expire on what? the session timeout or the page cache timeout?
session_cache_expire() function sets expire on the client side. Session lifetime on the server is set by session.gc_maxlifetime setting, you can use ini_set() to change it. But you have to use your own directory to store session files, use ini_set('session.save_path', '/your/session/dir');

« previous php.general (#173716) next »