Bluehost.com Web Hosting $6.95

cache_limiter & cache_expire

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2004
Eli Hen
 
Posts: n/a
Default cache_limiter & cache_expire

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
Reply With Quote
  #2 (permalink)  
Old 01-05-2004
Marek Kilimajer
 
Posts: n/a
Default Re: [PHP] cache_limiter & cache_expire

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');
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0