Advertisement

Users logged in to the site

General questions relating to Joomla! 5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
CCA63
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Oct 22, 2024 4:32 pm

Users logged in to the site

Post by CCA63 » Mon Nov 04, 2024 5:49 am

Hello, users connected to my site by Community Builder have their session that remains open permanently despite a session setting set to 15 minutes.

Is this normal?


Joomla 5.2.0

Advertisement
User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10326
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Users logged in to the site

Post by AMurray » Mon Nov 04, 2024 9:40 am

What session handler are you using Database or PHP method (sometimes referred to as "File")? You can purge the session table, that forces all log-out including site admins/super users. Not ideal but a work-around. But I'd set the session handler to "file/php" to avoid the database bloat caused by the session table, especially on a busy site.

Is this something you have noticed, or brought to your attention by your site users? It might mess things up if a user simply closes their browser without logging out, but the worse that could happen is the next time they try to log in they get the "invalid token" error (which would be caused by the session expiring)

There is a "Session Alive" Chrome plugin so that's one possibility/explanation. Other browsers may have similar plugins.

The session setting 15 minutes refers to 15 mins of inactivity, not just 15 minutes, period.
Regards - A Murray
General Support Moderator

CCA63
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Oct 22, 2024 4:32 pm

Re: Users logged in to the site

Post by CCA63 » Mon Nov 04, 2024 12:06 pm

I'm using database method.

User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10326
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Users logged in to the site

Post by AMurray » Mon Nov 04, 2024 9:47 pm

Can you change to "file/php" method, and see if the sessions still "stick" rather than expire as you expect them? Purge (Delete) the session table data. See if the sessions still do not expire as you want them (purging as mentioned above, will auto-log out everyone).

File/PHP method is more efficient, and the more favourable method from posts I've read on this forum.
Regards - A Murray
General Support Moderator

SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3098
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Users logged in to the site

Post by SharkyKZ » Mon Nov 04, 2024 10:15 pm

Set up Session Data Purge scheduled task.

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

Re: Users logged in to the site

Post by Per Yngve Berg » Tue Nov 05, 2024 8:42 am

The Server have a Cron Job that purge Expired php Sessions.

Advertisement

Post Reply

Return to “General Questions/New to Joomla! 5.x”