[GH-ISSUE #126] Session expiry problem #76

Closed
opened 2026-02-28 01:20:52 +03:00 by kerem · 1 comment
Owner

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

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
kerem closed this issue 2026-02-28 01:20:52 +03:00
Author
Owner

@bjoe2k4 commented on GitHub (Oct 7, 2016):

Just set a $secret in config.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.

<!-- gh-comment-id:252264375 --> @bjoe2k4 commented on GitHub (Oct 7, 2016): Just set a `$secret` in `config.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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsedit#76
No description provided.