6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/7/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#1658] setting session timeout to non-zero expires sessions immediately
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..__ .___.__..__ | |[__)[__ | |[ __ |__|[__)| |__\[_./
Comment
> I read the URL that accompanied the timeout option, and what it > appears to say is that it should be the time in seconds that the > cookie should live, not the current time plus the number of seconds > the cookie should live. The entry quoted below seems to state this > rather plainly (if this comment is incorrect, then the documentation > should reflect this, or a note should be made for the timout option): > > > > The first argument to session_set_cookie_params is the number of > seconds in the future (based on the server's current time) that the > session will expire. So if you want your sessions to last 100 days: > > > > $expireTime = 60*60*24*100; // 100 days > > session_set_cookie_params($expireTime); > > > > I was using time()+$expireTime, which is WRONG (a lot of the > session_set_cookie_params() examples I found get this wrong, but > probably don't care because they are just doing "infinite" sessions).
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers