Session life - issue Topic is solved
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Enthusiast
- Posts: 171
- Joined: Sun Sep 15, 2013 7:28 pm
- Contact:
Session life - issue
Hi.
I've set session life at 120 minutes, in Joomla Global configuration. And I have also set session duration at 7200 sec (i.e. 120 minutes) in Kunena Configuration.
But, I have noticed that often there is no automatic log out, at the end of session life.
For example, if I log in, late in the evening, I found out that I am still logged in, the next morning.
Why can that happen?
Thanks
I've set session life at 120 minutes, in Joomla Global configuration. And I have also set session duration at 7200 sec (i.e. 120 minutes) in Kunena Configuration.
But, I have noticed that often there is no automatic log out, at the end of session life.
For example, if I log in, late in the evening, I found out that I am still logged in, the next morning.
Why can that happen?
Thanks
- Per Yngve Berg
- Joomla! Master
- Posts: 29659
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Session life - issue
You have set it to 7200 minuttes.
Default is 15.
What do you have set as Session Handler in Global Configuration ?
Recommend to use File System instead of Database.
Default is 15.
What do you have set as Session Handler in Global Configuration ?
Recommend to use File System instead of Database.
-
- Joomla! Enthusiast
- Posts: 171
- Joined: Sun Sep 15, 2013 7:28 pm
- Contact:
Re: Session life - issue
Ok, thanks. In Kunena configuration, explanations aside Session life field say that measure unit is seconds not minutes. Maybe, there is a mistake in the translation.Per Yngve Berg wrote: ↑Tue Nov 15, 2022 9:20 amYou have set it to 7200 minuttes.
Default is 15.
What do you have set as Session Handler in Global Configuration ?
Recommend to use File System instead of Database.
I will try what you suggest.
-
- Joomla! Enthusiast
- Posts: 171
- Joined: Sun Sep 15, 2013 7:28 pm
- Contact:
Re: Session life - issue
It doesn't work. Whatever I insert in Kunena session life field, and joomla session life filed, I don't get log out, within the time that I've set. Is there a bug?
- Per Yngve Berg
- Joomla! Master
- Posts: 29659
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Session life - issue
It does not work that way. It's the time since the last request to the server. Also the back-end does have a Keep Alive Script that access the server before timeout. Try to close the browser window.
It also depends on what you use a Session Handler ('database' or php 'filesystem') in Global Configuration.
It also depends on what you use a Session Handler ('database' or php 'filesystem') in Global Configuration.
-
- Joomla! Enthusiast
- Posts: 171
- Joined: Sun Sep 15, 2013 7:28 pm
- Contact:
Re: Session life - issue
DatabasePer Yngve Berg wrote: ↑Sun Dec 04, 2022 11:09 amIt does not work that way. It's the time since the last request to the server. Also the back-end does have a Keep Alive Script that access the server before timeout. Try to close the browser window.
It also depends on what you use a Session Handler ('database' or php 'filesystem') in Global Configuration.
- Per Yngve Berg
- Joomla! Master
- Posts: 29659
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Session life - issue
Php is the preferred method with php 7 and above.
Save.Session_path must be writable on your server. Even when database is selected, a php session is established.
Save.Session_path must be writable on your server. Even when database is selected, a php session is established.
-
- Joomla! Enthusiast
- Posts: 171
- Joined: Sun Sep 15, 2013 7:28 pm
- Contact:
Re: Session life - issue
Thanks
-
- Joomla! Enthusiast
- Posts: 171
- Joined: Sun Sep 15, 2013 7:28 pm
- Contact:
Re: Session life - issue
I switched to php filesystem to check what happens. What do I have to write in Save session path?
-
- Joomla! Enthusiast
- Posts: 171
- Joined: Sun Sep 15, 2013 7:28 pm
- Contact:
Re: Session life - issue
After switching to php filesystem, life session seems to work properly. I left Save session path field empty.
- Per Yngve Berg
- Joomla! Master
- Posts: 29659
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Session life - issue
Do you mean save.session_path in php.ini or somewhere else?
-
- Joomla! Enthusiast
- Posts: 171
- Joined: Sun Sep 15, 2013 7:28 pm
- Contact:
Re: Session life - issue
The field under Session handler in Global Configuration - System (see attachment)
You do not have the required permissions to view the files attached to this post.
- Per Yngve Berg
- Joomla! Master
- Posts: 29659
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Session life - issue
That is for overriding what is set in php.