This is a discussion on cache_limiter & cache_expire within the PHP General forums, part of the PHP Programming Forums category; Hello All, I would like to do that the session will expire after X minutes, and the page at the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? -thanks, Eli |
|
|||
|
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'); |