mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2026-04-26 16:15:54 +03:00
[GH-ISSUE #126] Session expiry problem #76
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
question
upstream
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsedit#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @richard-underwood on GitHub (Oct 7, 2016).
Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/126
The session expires after exactly half an hour, whether it's been active or not. It would make sense to reduce the timeout and instead extend the session each time the session is validated by a request.
It looks like this is a limitation in the PHP session functions. The best solution appears to be to set a long-lasting cookie (perhaps a session cookie with no lifetime) and then store the expiry within the session.
http://php.net/manual/en/function.session-set-cookie-params.php#12811
@bjoe2k4 commented on GitHub (Oct 7, 2016):
Just set a
$secretinconfig.inc.php(commented out by default) and there will be a checkbox below the login that allows you to stay logged in for a month via an autologin cookie. Works well for me.