Skip to content
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

Session expire time #15248

Closed
yaseminhocaoglu opened this issue Jan 1, 2021 · 2 comments
Closed

Session expire time #15248

yaseminhocaoglu opened this issue Jan 1, 2021 · 2 comments
Labels
discussion Request for comments and discussion not a bug Reported issue is not a bug

Comments

@yaseminhocaoglu
Copy link

yaseminhocaoglu commented Jan 1, 2021

Hello, I have an application developed with Phalcon 3.4 with heavy data flow. But I have a problem with the session. Sometimes, if the user does not operate in the application for about an hour, the session ends when the application returns. Using load balancer. Could it be losing the session file during migrations? Thank you for your help

@Jeckerson
Copy link
Member

Hello, if you are using file session adapter and put your sessions into /tmp directory, you will depend on OS schedules, as it clear folder time to time. Try to use different folder outside public view and clear it manually, or by using another approaches.

@Jeckerson Jeckerson added discussion Request for comments and discussion need script to reproduce Script is required to reproduce the issue labels Jan 5, 2021
@yaseminhocaoglu
Copy link
Author

The problem is not due to the load balance. When we increased the session maxlifetime in the php.ini file, the problem was solved. (Session.gc_maxlifetime) The default time was 24 minutes and this time was insufficient. I increased the time to 3 hours. Thank you

@Jeckerson Jeckerson added not a bug Reported issue is not a bug and removed need script to reproduce Script is required to reproduce the issue labels Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Request for comments and discussion not a bug Reported issue is not a bug
Projects
None yet
Development

No branches or pull requests

2 participants