Session: change cookie lifetime from "until browser is closed" to 14 days #37

Closed
minnozz wants to merge 1 commits from session-duration into master
Member

Fixes #2

Fixes #2
minnozz added 1 commit 2023-11-16 17:26:15 +01:00
Member

I think the cookie itself is not the leading factor in determining session duration. At the very least, we would need to change this setting in php.ini as well:

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://php.net/session.gc-maxlifetime
session.gc_maxlifetime = 1440
I think the cookie itself is not the leading factor in determining session duration. At the very least, we would need to change this setting in `php.ini` as well: ``` ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime session.gc_maxlifetime = 1440 ```
Author
Member

I vaguely remember talking with @Roflin about the php.ini variables years ago; did you paste the actual snippet from the php.ini in use or a sample?

I vaguely remember talking with @Roflin about the php.ini variables years ago; did you paste the actual snippet from the php.ini in use or a sample?
Member

No, I don't have access to the server configuration, so this was from my local php.ini.

No, I don't have access to the server configuration, so this was from my local `php.ini`.
Owner
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; https://php.net/session.gc-maxlifetime
session.gc_maxlifetime = 1440

Snippet from the server.

``` ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. ; https://php.net/session.gc-maxlifetime session.gc_maxlifetime = 1440 ``` Snippet from the server.
Owner

Not relevant anymore, fixed by PHP config?

Not relevant anymore, fixed by PHP config?
Roflin closed this pull request 2023-11-21 08:41:40 +01:00
Owner

Not relevant anymore, fixed by PHP config?

Not relevant anymore, fixed by PHP config?
Owner

Not relevant anymore, fixed by PHP config?

Not relevant anymore, fixed by PHP config?

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
3 Participants
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: Public/pics#37
No description provided.