Session life - issue Topic is solved

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

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
Post Reply
ita4012
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 171
Joined: Sun Sep 15, 2013 7:28 pm
Contact:

Session life - issue

Post by ita4012 » Tue Nov 15, 2022 8:54 am

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

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 29659
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Session life - issue

Post by Per Yngve Berg » Tue Nov 15, 2022 9:20 am

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.

ita4012
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 171
Joined: Sun Sep 15, 2013 7:28 pm
Contact:

Re: Session life - issue

Post by ita4012 » Tue Nov 15, 2022 9:53 am

Per Yngve Berg wrote:
Tue Nov 15, 2022 9:20 am
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.
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.

I will try what you suggest.

ita4012
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 171
Joined: Sun Sep 15, 2013 7:28 pm
Contact:

Re: Session life - issue

Post by ita4012 » Sun Dec 04, 2022 10:48 am

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?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 29659
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Session life - issue

Post by Per Yngve Berg » Sun Dec 04, 2022 11:09 am

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.

ita4012
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 171
Joined: Sun Sep 15, 2013 7:28 pm
Contact:

Re: Session life - issue

Post by ita4012 » Sun Dec 04, 2022 11:32 am

Per Yngve Berg wrote:
Sun Dec 04, 2022 11:09 am
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.
Database

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 29659
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Session life - issue

Post by Per Yngve Berg » Sun Dec 04, 2022 12:19 pm

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.

ita4012
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 171
Joined: Sun Sep 15, 2013 7:28 pm
Contact:

Re: Session life - issue

Post by ita4012 » Sun Dec 04, 2022 12:26 pm

Thanks

ita4012
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 171
Joined: Sun Sep 15, 2013 7:28 pm
Contact:

Re: Session life - issue

Post by ita4012 » Sun Dec 04, 2022 4:14 pm

I switched to php filesystem to check what happens. What do I have to write in Save session path?

ita4012
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 171
Joined: Sun Sep 15, 2013 7:28 pm
Contact:

Re: Session life - issue

Post by ita4012 » Tue Dec 06, 2022 11:20 am

After switching to php filesystem, life session seems to work properly. I left Save session path field empty.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 29659
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Session life - issue

Post by Per Yngve Berg » Tue Dec 06, 2022 12:37 pm

Do you mean save.session_path in php.ini or somewhere else?

ita4012
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 171
Joined: Sun Sep 15, 2013 7:28 pm
Contact:

Re: Session life - issue

Post by ita4012 » Tue Dec 06, 2022 1:30 pm

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.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 29659
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Session life - issue

Post by Per Yngve Berg » Tue Dec 06, 2022 8:02 pm

That is for overriding what is set in php.


Post Reply

Return to “Administration Joomla! 4.x”