| Summary | incorrect cookie expiration times |
| Queue | Horde Base |
| Queue Version | 3.0.2 |
| Type | Bug |
| State | Resolved |
| Priority | 2. Medium |
| Owners | Horde Developers (at) |
| Requester | m.zdila (at) episoftware (dot) com |
| Created | 02/03/2005 (7583 days ago) |
| Due | |
| Updated | 04/02/2005 (7525 days ago) |
| Assigned | 04/02/2005 (7525 days ago) |
| Resolved | 04/02/2005 (7525 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Resolved
State ⇒ Assigned
Priority ⇒ 2. Medium
*is* relative. Reopening.
State ⇒ Resolved
interval. Instead we even point to the setcookie() documentation
explicitely.
OTOH it doesn't make sense to enter a fixed value (integer) here,
because you most likely want to always have a dynamic value there.
Thus I changed the configuration type so that you now can enter PHP
code there.
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ incorrect cookie expiration times
Queue ⇒ Horde Base
@setcookie($keyname . '_key', $key, $conf['session']['timeout'],
$conf['cookie']['path'], $conf['cookie']['domain'], $conf
['use_ssl'] == 1 ? 1 : 0);
But the setcookie function expect absolute time of cookie expiration,
not relative. Therefore the correct form should be:
@setcookie($keyname . '_key', $conf['session']['timeout'] == 0 ? 0 :
$key, time() + $conf['session']['timeout'], $conf['cookie']['path'],
$conf['cookie']['domain'], $conf
['use_ssl'] == 1 ? 1 : 0);
Am I right? I lost about 5 hours :-/ to find a problem why the IMP
application forever reloads when I use cookies. Only MSIE worked (it
kept the cookie with the time in the past).