-
Notifications
You must be signed in to change notification settings - Fork 1.9k
docs: Notes about switching types in session #9508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Notes about switching types in session #9508
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add another note about clearing expired sessions. But I don't fully know how to do it.
Probably something like this:
0 2 * * * find /path/to/your/project/writable/session -type f -name 'ci_session*' -mmin +1440 -delete
It will delete stale sessions that haven’t been used for more than 24 hours.
- The session path should be set to:
Config\Session::$savePath
. - The session name should be set to:
Config\Session::$cookieName
- The user running the cron job should have permission to access and delete those session files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3f84112
to
ad8ba45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor grammar fix.
ad8ba45
to
e4bff61
Compare
Description
See #9505 (comment)
Checklist: