-
Notifications
You must be signed in to change notification settings - Fork 39
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
User session expire time (DB) #89
Comments
The session timeout is actually something controlled by PHP. You can set it in your php.ini, found this link: It can actually be set using session-set-cookie-params: Feel free to add it into StartPHPSession() and make it configureable. |
It doesn't seem to be working well without editing php.ini. On the contrary, when i configure 'session.gc_maxlifetime' in php.ini to a week, i don't need to re login. To be precise, native (apache?) login form still appears on mobile browser and after submit is loaded previous loganalyzer page. However, the strangest thing is that in both cases PHPSESSID cookie exists with correct max-age/expire time. |
This does not seem to be a php session timeout but rather http authentication, so you may look into tcp keep alive settings of your webserver to extend that timeout. |
The problem wasn't in the native apache login form. Anyway, i've disabled it now and will re-check if the issue persists. |
I've re-checked and it's still true - ini_set doesn't help.
UPD20240214 For the first time, I caught this error on admin pages while a user (with admin rights) was logged in. For some reason (i assume to check how it will behave on different paths), i've restricted /admin with /etc/apache2/.htpasswd. So, this time, to bypass the HTTP basic authorization form and access the /admin pages, I had to enter the login data from .htpasswd.
On the other hand, I haven't caught it again on user pages, so I assume you are right, @alorbach, and the real cause of the problem was the Apache native login form. |
Hello,
Could you, please, guide me how to change default session expiration time?
Here is mentioned that default user session timeout is 30 minutes (is it true?). I want to extend its value, but can't find a place where to configure it.
OS: ubuntu (armbian)
LogAnalyzer with mySql.
The text was updated successfully, but these errors were encountered: