6.0.0-beta1
7/8/25

[#13448] horde_secret_key cookie does not use configured session timeout
Summary horde_secret_key cookie does not use configured session timeout
Queue Horde Framework Packages
Queue Version FRAMEWORK_5_1
Type Enhancement
State Rejected
Priority 1. Low
Owners
Requester horde (at) stefanseidel (dot) info
Created 08/18/2014 (3977 days ago)
Due
Updated 08/18/2014 (3977 days ago)
Assigned
Resolved 08/18/2014 (3977 days ago)
Milestone
Patch Yes

History
08/18/2014 08:49:49 PM horde (at) stefanseidel (dot) info Comment #4 Reply to this comment
This is not correct, because a framework library cannot access Horde 
configurations, and not necessary either.
This is a rejection of the solution, but what about the problem?

The horde session can be configured to survive a browser close, but it 
will be partially unusable because e.g. the IMAP login information 
cannot be recovered without the key. If that is intentional, it should 
at least be documented.
08/18/2014 08:46:55 PM Michael Slusarz Comment #3 Reply to this comment
FWIW: the Horde application handles session timeouts via the actual 
session data (which is both more secure and stable).  So we want the 
cookie to be non-expiring within the browser session.
08/18/2014 08:41:01 PM Jan Schneider Comment #2
State ⇒ Rejected
Reply to this comment
This is not correct, because a framework library cannot access Horde 
configurations, and not necessary either.
08/18/2014 08:09:21 AM horde (at) stefanseidel (dot) info Comment #1
Priority ⇒ 1. Low
New Attachment: hs.patch Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ horde_secret_key cookie does not use configured session timeout
Type ⇒ Enhancement
State ⇒ New
Reply to this comment
I'm not sure if this a bug or a feature, but according to 
http://lists.horde.org/archives/horde/Week-of-Mon-20140203/050583.html 
it seems it is not intentional:

in pear/php/Horde/Secret.php, a cookie is set, and the lifetime of the 
cookie is set to 0, which means it is removed when the browser is 
closed. This can be seen as a security feature, however, it is not 
consistent with the rest of the horde session, because its cookie 
timeout is set according to $conf['session']['timeout']. Attached is a 
small workaround that honours this configuration setting, and with 
this the horde session expires at the same time as the horde_secret.

Saved Queries