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

[BUG] Session timeout every 30min or so #557

Closed
ghost opened this issue Jan 6, 2022 · 5 comments
Closed

[BUG] Session timeout every 30min or so #557

ghost opened this issue Jan 6, 2022 · 5 comments
Labels
Bug Fixed and Staged Fixed in Master and ready to be included in the next release

Comments

@ghost
Copy link

ghost commented Jan 6, 2022

Describe the bug
I get disconnected from the site every half an hour or so, event though the sessionn timeout is set to 8h
public $sessionExpiration = 28800; //How many seconds after inactivity should we logout? 28800seconds = 8hours

To Reproduce
Steps to reproduce the behavior:

  1. Have a page open and go grab a coffee
  2. Come back
  3. You're now disconnected but it doesnt show it. So if you try stopping a timer, it will stop it, showing the login page over the notification, but it wont actually register the change in DB.

Leantime Version
2.1.8

Server
Apache2

PHP / MySQL Version
PHP 7.4
MariaDB10

Additional context
Firefox, no adblock on the domain

@ghost ghost added the Bug label Jan 6, 2022
@nickian
Copy link

nickian commented Mar 16, 2022

I'm noticing the same behavior. The app does not seem to respect the session expiration setting in the configuration.

@ghost
Copy link
Author

ghost commented Mar 24, 2022

The most disturbing part was that it showed the entire "login" page into the notification block. I dont have a screenshot unfortunatly as i didnt keep using it afterward.

@marcelfolaron
Copy link
Contributor

I have a hard time reproducing this. I stay logged in and the cookie seems to be fine.
Can you take a look and check if the cookie expiration date/time is correct? I noticed that only Firefox users encountered that problem, so I am wondering if there is a php setting or so that needs to be set.

@martin-korf
Copy link

You can try change the session.gc_maxlifetime in the php.ini . It seems that this solved it for me

; 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 = 86400

@marcelfolaron
Copy link
Contributor

marcelfolaron commented May 5, 2022 via email

marcelfolaron added a commit that referenced this issue Jun 23, 2022
@marcelfolaron marcelfolaron added the Fixed and Staged Fixed in Master and ready to be included in the next release label Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fixed and Staged Fixed in Master and ready to be included in the next release
Projects
None yet
Development

No branches or pull requests

3 participants