php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38278 session_cache_expire()'s value does not match phpinfo's session.cache_expire
Submitted: 2006-08-01 03:25 UTC Modified: 2006-08-01 08:33 UTC
From: winterain at gmail dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.4.2 OS: Windows
Private report: No CVE-ID:
 [2006-08-01 03:25 UTC] winterain at gmail dot com
Description:
------------
I have tried setting the session.cache_expire time to 5 mins with the use of session_cache_expire(5) function... it does not work... the session will still expire after 180mins which is the default value for session.cache_expire.


Reproduce code:
---------------
session_cache_limiter('private');
session_cache_expire(5);

session_start();

phpinfo();

echo session_cache_expire();


Expected result:
----------------
after running the code, i'm expecting that phpinfo()'s session.cache_expire's local value will be 5. And phpinfo()'s session.cache_expire's local value should match the value returned by session_cache_expire().

Actual result:
--------------
phpinfo's session.cache_expire's local value is 180 and the value of session_cache_expire() is 5

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-01 07:29 UTC] tony2001@php.net
Are you sure you changed correct php.ini and restarted the web server after that?
 [2006-08-01 07:49 UTC] winterain at gmail dot com
this doesn't have to do with php.ini... i wanted to set shorter session expire time for some webpages... but, other webpages should have the default session expire time which is 180mins...

Note: (after executing the code... under phpinfo()'s session)
session.cache_limiter's local value is private
session.cache_limiter's master value is nocache

This is the expected and actual output for session.cache_limiter... which is already correct.

But with session.cache_expire, the local value is not 5 but 180, and the master value is 180 (which is the default).
 [2006-08-01 08:33 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 10:03:03 2014 UTC