No option to logout users from backend
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! Apprentice
- Posts: 23
- Joined: Tue Mar 11, 2008 7:48 am
No option to logout users from backend
Hello,
This option was available in Joomla 3.9.x and is very handy.
I have been unable to locate any switch or setting to enable this option again from the backend of Joomla 4.
Anyone have any clues on this?
This option was available in Joomla 3.9.x and is very handy.
I have been unable to locate any switch or setting to enable this option again from the backend of Joomla 4.
Anyone have any clues on this?
- AMurray
- Joomla! Exemplar
- Posts: 7658
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: No option to logout users from backend
Please clarify: you want to force the log-out of normal front-end users from within the back end (e.g. registered, authors, editors, publishers) or if you mean you're looking for the log out link for your own account, that's under the "User Menu" in the top right corner of the administrator or do you mean you want to be able to force users of the administrator area to be logged out (e.g. other administrators, managers super users)?
I recall earlier discussions for Joomla 3 about this (viewtopic.php?t=946527 and viewtopic.php?t=923252) and the conclusion was it works when your session handler is set to "database" as opposed to others such as "filesystem"' or "memcached" as I am seeing in my J4 site just now (the J3 terminology may have been slightly different). I'm not sure it works with administrator-side users or just front-end users (in either J3 or J4).
Personally I use 'filesystem' as that's the often recommended method from members on the forum here and I don't need the function you're seeking to use.
Try setting the session type to database and see if that makes the difference. Switching the session method will also log-out everyone that's already logged in but that's obviously not the way to do it on a 'routine' basis, this should be a one-off setting - check if it works and what you expect, otherwise, change it back.
I recall earlier discussions for Joomla 3 about this (viewtopic.php?t=946527 and viewtopic.php?t=923252) and the conclusion was it works when your session handler is set to "database" as opposed to others such as "filesystem"' or "memcached" as I am seeing in my J4 site just now (the J3 terminology may have been slightly different). I'm not sure it works with administrator-side users or just front-end users (in either J3 or J4).
Personally I use 'filesystem' as that's the often recommended method from members on the forum here and I don't need the function you're seeking to use.
Try setting the session type to database and see if that makes the difference. Switching the session method will also log-out everyone that's already logged in but that's obviously not the way to do it on a 'routine' basis, this should be a one-off setting - check if it works and what you expect, otherwise, change it back.
Regards - A Murray
- ceford
- Joomla! Guru
- Posts: 745
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: No option to logout users from backend
Add Logged-in Users Module to Administrator Dashboard. There is a button to force logout of front end users. It works with Database and File session handlers.
-
- Joomla! Apprentice
- Posts: 23
- Joined: Tue Mar 11, 2008 7:48 am
Re: No option to logout users from backend
Hello,
I do have that module published, but there is no button as described, nor are there any options within the module to turn one on.
I am using Joomla 4.0.5
I do have that module published, but there is no button as described, nor are there any options within the module to turn one on.
I am using Joomla 4.0.5
- Webdongle
- Joomla! Master
- Posts: 41285
- Joined: Sat Apr 05, 2008 9:58 pm
Re: No option to logout users from backend
Have you logged in the front end with a test user?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- AMurray
- Joomla! Exemplar
- Posts: 7658
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: No option to logout users from backend
OK my answer above seems outdated for the current issue.
I'm also not seeing any 'log out' method next to the 'logged in user' in that module. Does it show if you only have a single SU, logged in back and front end, and using the Shared Sessions feature?
I'm also not seeing any 'log out' method next to the 'logged in user' in that module. Does it show if you only have a single SU, logged in back and front end, and using the Shared Sessions feature?
Regards - A Murray
-
- Joomla! Apprentice
- Posts: 23
- Joined: Tue Mar 11, 2008 7:48 am
Re: No option to logout users from backend
I am using the very same settings I have used for every website I've built on Joomla 3.x
This setting does not exist. Not at all.
Wouldn't it be nice? I think so.
This setting does not exist. Not at all.
Wouldn't it be nice? I think so.
- ceford
- Joomla! Guru
- Posts: 745
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: No option to logout users from backend
Are you saying that you would like to have a button that forces logout of users logged to the Administrator interface just like the one used to force logout of users logged in to the Site, as aillustrated here:
Or do you want something in the Users list to force logout from there?
Or do you want something in the Users list to force logout from there?
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Apprentice
- Posts: 23
- Joined: Tue Mar 11, 2008 7:48 am
Re: No option to logout users from backend
I do not have anything at all in the "location" column.
That cute little red button to "logout" would be very nice.
What I don't get is how careful I have been not to load half-baked crap into a new Joomla installation and THIS STILL happens. Not happy at all.
That cute little red button to "logout" would be very nice.
What I don't get is how careful I have been not to load half-baked crap into a new Joomla installation and THIS STILL happens. Not happy at all.
- Maradona
- Joomla! Intern
- Posts: 77
- Joined: Fri Aug 30, 2013 2:08 pm
Re: No option to logout users from backend
I do have it...default fresh installed of 4.0.5
============================================ ============================================

============================================ ============================================
You do not have the required permissions to view the files attached to this post.
- brian
- Joomla! Master
- Posts: 12474
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: No option to logout users from backend
I can't remember the exact reasoning but if you have shared sessions enabled (not the default option) then it is the intended behaviour that the logout button is not available
Last edited by brian on Mon Jan 17, 2022 5:41 pm, edited 1 time in total.
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
- ceford
- Joomla! Guru
- Posts: 745
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: No option to logout users from backend
The Location column will be empty if $user->client_id === null rather than 1 or 0. So make sure you login to the front end - and try with a newly created user for yourself. And check you don't have an Atum template override for mod_logged.sjb1963 wrote: ↑Mon Jan 17, 2022 4:47 pmI do not have anything at all in the "location" column.
That cute little red button to "logout" would be very nice.
What I don't get is how careful I have been not to load half-baked crap into a new Joomla installation and THIS STILL happens. Not happy at all.
-
- Joomla! Apprentice
- Posts: 23
- Joined: Tue Mar 11, 2008 7:48 am
Re: No option to logout users from backend
So, it's not a "bug", it's a feature.
I wonder if anyone actually checked if it was actually useful or not.
I wonder if anyone actually checked if it was actually useful or not.
- brian
- Joomla! Master
- Posts: 12474
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: No option to logout users from backend
It's simply not possible if you enable the shared session option (which was not available in j3). The default is still not to use shared sessions and then you get the logout button. This is why everyone else said that it was present for them. You enabled an option that doesnt allow a logout.
As I will write in my answer on github. Shared sessions is just a way to have you logged in on the frontend when you are logged in to the admin. Thats all.
As I will write in my answer on github. Shared sessions is just a way to have you logged in on the frontend when you are logged in to the admin. Thats all.
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
-
- Joomla! Apprentice
- Posts: 23
- Joined: Tue Mar 11, 2008 7:48 am
Re: No option to logout users from backend
I enable shared sessions so that as the Admin, I do not have to log in twice.
This worked in Joomla 3.x and the option to Share sessions is clearly defined in the global configuration that I am looking at right now.
The point here is that now, as opposed to when it actually worked, it's an either/or proposition which, in my opinion detracts from Joomla, and does not add to it.
So, no, I don't see this as a feature at all. Pretend I'm stupid all you like.
This worked in Joomla 3.x and the option to Share sessions is clearly defined in the global configuration that I am looking at right now.
The point here is that now, as opposed to when it actually worked, it's an either/or proposition which, in my opinion detracts from Joomla, and does not add to it.
So, no, I don't see this as a feature at all. Pretend I'm stupid all you like.
- sozzled
- Joomla! Master
- Posts: 11873
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: No option to logout users from backend
See also GitHub discussion: https://github.com/joomla/joomla-cms/issues/36720
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” 

- Webdongle
- Joomla! Master
- Posts: 41285
- Joined: Sat Apr 05, 2008 9:58 pm
Re: No option to logout users from backend
Set shared session logged out of admin and logged back in admin
Logged in front end test user in another browser
No logout button shown in logged in users
Closed browsers
Logged in alternative browser with test user
Logged in admin normal browser
Test user showed twice. First was the log of the previous logged in. Second was the current logged in with a red logout button shown in logged in user.
Works as expected for me
Logged in front end test user in another browser
No logout button shown in logged in users
Closed browsers
Logged in alternative browser with test user
Logged in admin normal browser
Test user showed twice. First was the log of the previous logged in. Second was the current logged in with a red logout button shown in logged in user.
Works as expected for me
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- ceford
- Joomla! Guru
- Posts: 745
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: No option to logout users from backend
I guess you could create an override if you want the Logout button whether or not using shared sessions. But this is not a good tool for finding and forcing logout of specific users - there may be hundreds logged in. The order of the handful in the logged in module is not specified. It would be good to have a use case for why the button is there at all and whether some other sort of utility is needed - like a Logout option in the User list Actions button.