6.0.0-alpha14
6/24/25

[#11444] Sessions for memcache only session handler timeout too soon
Summary Sessions for memcache only session handler timeout too soon
Queue Horde Framework Packages
Queue Version FRAMEWORK_4
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester arjen+horde (at) de-korte (dot) org
Created 09/24/2012 (4656 days ago)
Due
Updated 10/15/2012 (4635 days ago)
Assigned
Resolved 09/26/2012 (4654 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/15/2012 08:40:36 PM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (develop):

commit 901bfdf0c0b8eb64aff3aa0f6f5685abde217bfc
Author: Jan Schneider <jan@horde.org>
Date:   Wed Sep 26 16:42:47 2012 +0200

     [jan] Fix track_lifetime setting for Memcache driver (Bug #11444).

  .../lib/Horde/SessionHandler/Storage/Memcache.php  |    6 +++---
  framework/SessionHandler/package.xml               |    4 ++--
  2 files changed, 5 insertions(+), 5 deletions(-)

http://git.horde.org/horde-git/-/commit/901bfdf0c0b8eb64aff3aa0f6f5685abde217bfc
09/26/2012 03:46:29 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 901bfdf0c0b8eb64aff3aa0f6f5685abde217bfc
Author: Jan Schneider <jan@horde.org>
Date:   Wed Sep 26 16:42:47 2012 +0200

     [jan] Fix track_lifetime setting for Memcache driver (Bug #11444).

  .../lib/Horde/SessionHandler/Storage/Memcache.php  |    6 +++---
  framework/SessionHandler/package.xml               |    4 ++--
  2 files changed, 5 insertions(+), 5 deletions(-)

http://git.horde.org/horde-git/-/commit/901bfdf0c0b8eb64aff3aa0f6f5685abde217bfc
09/26/2012 02:44:21 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
09/26/2012 02:43:58 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (FRAMEWORK_4):

commit 1ff316dd844d42db93d29120c132a40cca839fd8
Author: Jan Schneider <jan@horde.org>
Date:   Wed Sep 26 16:42:47 2012 +0200

     [jan] Fix track_lifetime setting for Memcache driver (Bug #11444).

  .../lib/Horde/SessionHandler/Storage/Memcache.php  |    6 +++---
  framework/SessionHandler/package.xml               |    4 ++--
  2 files changed, 5 insertions(+), 5 deletions(-)

http://git.horde.org/horde-git/-/commit/1ff316dd844d42db93d29120c132a40cca839fd8
09/24/2012 09:36:28 PM arjen+horde (at) de-korte (dot) org Comment #2
New Attachment: Memcache.diff Download
Reply to this comment
Patch for memcache storage driver (so that it honors the timeout for 
tracked sessions)
09/24/2012 05:32:30 PM arjen+horde (at) de-korte (dot) org Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Sessions for memcache only session handler timeout too soon
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
When using the 'memcache only' session handler. it is possible to 
override the php.ini's 'session.gc_maxlifetime' parameter.

Unfortunately, the variable set in config/conf.xml uses 
'track_lifetime', where SessionHandler/Storage/Memcache.php looks for 
the variable 'track_lt'. Therefor, the SessionHandler will always 
fallback to the 'session.gc_maxlifetime' value from php.ini (which 
might be a lot smaller).

Either conf.xml should be changed to use 
$conf[sessionhandler][params][track_lt] (which fixed the problem for 
me) or the SessionHandler should be changed to use 'track_lifetime' 
(as advertised in the constructor's comments).


Saved Queries