No Code Attached Yet
avatar sjb1963
sjb1963
17 Jan 2022

Steps to reproduce the issue

Install Joomla 4.
Create a basic user.
Login to the website from the font end.
Review backend. User shows up

Expected result

Just like in Joomla 3.x, I should be able to log out a user from the backend.

Actual result

This doesn't even exists at all.

System information (as much as possible)

Joomla 4.0.5

Additional comments

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
4.00

avatar sjb1963 sjb1963 - open - 17 Jan 2022
avatar sjb1963 sjb1963 - change - 17 Jan 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jan 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Jan 2022
avatar brianteeman
brianteeman - comment - 17 Jan 2022

can not replicate this

image

avatar sjb1963
sjb1963 - comment - 17 Jan 2022

This is not what I have. Sorry. I have everything except anything at all under the "location" column.

avatar sjb1963
sjb1963 - comment - 17 Jan 2022

image

avatar brianteeman
brianteeman - comment - 17 Jan 2022

ah - do you have this option enabled

image

avatar sjb1963
sjb1963 - comment - 17 Jan 2022

I have both of those options enabled.

avatar brianteeman
brianteeman - comment - 17 Jan 2022

and if you set it to shared sessions - no?

avatar Quy
Quy - comment - 17 Jan 2022

See PR #35732

avatar brianteeman
brianteeman - comment - 17 Jan 2022

@Quy what does that have to do with it?

avatar Quy
Quy - comment - 17 Jan 2022

It fixes #35500 which is a duplicate of this issue.

avatar brianteeman
brianteeman - comment - 17 Jan 2022

Sorry I understand now. Its not a duplicate but I can see why you might think it was

avatar brianteeman
brianteeman - comment - 17 Jan 2022

@sjb1963 I can't remember the exact reasoning but if you have shared sessions enabled then the logout button is not available

avatar Quy
Quy - comment - 17 Jan 2022

It is a duplicate. Please see screenshots in both issues. They don't have values under the Location column because client_id is null, Here is the code:

					<?php if ($user->client_id === null) : ?>
						<?php // Don't display a client ?>
					<?php elseif ($user->client_id) : ?>
						<?php echo Text::_('JADMINISTRATION'); ?>
					<?php else : ?>
						<form action="<?php echo $user->logoutLink; ?>" method="post" name="adminForm">
							<?php echo Text::_('JSITE'); ?>
							<button type="submit" class="me-2 btn btn-danger btn-sm">
								<?php echo Text::_('JLOGOUT'); ?>
							</button>
						</form>
					<?php endif; ?>
avatar brianteeman
brianteeman - comment - 17 Jan 2022

not arguing - the issues are different. This issue is about not having a logout button. That issue is about the location being empty. That PR will resolve the column being empty but will have no impact on the logout button

avatar Quy
Quy - comment - 17 Jan 2022

Please read the code. If client_id is null, display nothing and don't display the logout button.

avatar brianteeman
brianteeman - comment - 17 Jan 2022

Your not listening - I give up!!

avatar sjb1963
sjb1963 - comment - 17 Jan 2022

Kind of completely invalidates the usefulness of "shared sessions" if you ask me.
Why screw with something that was working fine? To make it look and act even MORE like Wordpress?

avatar brianteeman
brianteeman - comment - 17 Jan 2022

Shared sessions is just a way to have you logged in on the frontend when you are logged in to the admin. Thats all. It is NOT enabled by default. It's something that some people will find useful but not all.

avatar Quy
Quy - comment - 17 Jan 2022

Sorry, I understand your point now. I am trying to explain why the Login button won't display under Shared Session.

shared = nothing
1 = Administration
0 = Site + login button

avatar brianteeman
brianteeman - comment - 17 Jan 2022

I understood why ;)

avatar brianteeman
brianteeman - comment - 17 Jan 2022

@Quy I understand the code why the logout button doesnt appear I am just wondering why it has been setup this way as this limitation was not present in j3. My apologies to @sjb1963 for not checking that - I thought shared sessions was new to j4

avatar sjb1963
sjb1963 - comment - 17 Jan 2022

So, if it's true then that "Shared Sessions" serves no other useful purpose than to allow a person with the proper rights to login to the back end and "share" that login with the front end - if that is true, then...

Wouldn't it be safe to say there is an issue with the display of the "logout" button that has nothing to do with shared sessions?

avatar richard67
richard67 - comment - 17 Jan 2022

Kind of completely invalidates the usefulness of "shared sessions" if you ask me.

@sjb1963 What is the use of shared sessions for you, and why do you want to be able to force logout a user in a shared session who might currently be logged in in backend?

To me it seems that you just insist in this issue to be an issue because you don't want to change your opinion, regardless of any explanations or reasons.

To make it look and act even MORE like Wordpress?

What does that issue here have to do with look and act of Wordpress? This sentence is just an unrelated rant ... kind of troll behaviour in my opinion.

avatar sjb1963
sjb1963 - comment - 17 Jan 2022

As I have repeatedly stated, I want the ability to log a user off of the front end, from the back end - just like in Joomla 3.x, and not be told it's a "feature".

This was a very simple question to which you @richard67 have not contributed one useful insight or solution.

Call me a troll if you like - I.do.not.care.

avatar richard67
richard67 - comment - 17 Jan 2022

As I have repeatedly stated, I want the ability to log a user off of the front end, from the back end - just like in Joomla 3.x, and not be told it's a "feature".

@sjb1963 Switch off the shared sessions option and you can do that as you like.

So what’s your problem?

avatar sjb1963
sjb1963 - comment - 17 Jan 2022

Look up Richard. Read what was written before you. I'm not going to justify a single thing to you about why I want to use a single feature of Joomla, or how I use it.

This is a bug. I have reported it that way. Its clear from what has been said that this is not the way it should work.
Unless you are actively trying to solve this issue, please refrain from actually BEING a troll on my post. Thank you.

avatar HLeithner
HLeithner - comment - 18 Jan 2022

Hello @sjb1963,

first of all thanks for reporting this issue and tbh honest using a rude language doesn't help much. Any way the behavior change is actually a security measure to be consistent with the behavior that you can't log out users from the backend.
The reason for this that nobody should be able to logout a super user (not even another super user).

Never the less this behavior can be improved. We found 2 possible solutions.

  1. Cheap way, we could check if the user has only frontend permissions and add the logout button
  2. More solid way, check if the active user has com_users.manage permissions and the user that should be logout is not a super user. (this could be drive more further to check if the active user has a higher permission level then the "bad" user, but I think that's not needed)

Any way now we need one who is interested to implement this feature.

avatar brianteeman
brianteeman - comment - 18 Jan 2022

@HLeithner wont this lead to confusion where only some users are listed with a logout button?

avatar HLeithner
HLeithner - comment - 18 Jan 2022

per default only super users wouldn't have a logout but and only super users can see the logout button... but yeah an info on docs (or somewhere else) would make sense why you can't logout a super user. Maybe there is already a docs entry?

avatar sjb1963
sjb1963 - comment - 18 Jan 2022

This was a very simple issue about ADMINISTRATION.

AN ADMINISTRATOR SHOULD BE ABLE TO LOG A USER OUT FROM THE BACKEND.
Basic Administrative functionality.

That's all. Nothing else. This post was not about ANYTHING else.

STILL NO SOLUTION.

I have REASON to be pissed off.

I've had people who didn't even know this feature was IN Joomla 3 - let alone in Joomla 4 - commenting, people who don't even bother to verify the question and post their arrogant and presumptuous answers here, apparently because they need to post on everything to maintain their sense of relevance, or scan for opportunities to try to assert their "virtual" moral superiority; others who didn't bother to try to understand the question, and then those who intentionally derail the question: linking it to things that aren't even relevant (like shared sessions).

This functionality existed on Joomla 3 for years flawlessly - it doesn't work/not there on Joomla 4. This is not an improvement.

avatar richard67
richard67 - comment - 18 Jan 2022

... and post their arrogant and presumptuous answers here, apparently because they need to post on everything to maintain their sense of relevance, ...

@sjb1963 Just for the records in case if you later delete your post as a proof that is was you who started to offend people here and so violate the code of conduct.

avatar sjb1963
sjb1963 - comment - 18 Jan 2022

And Still the issue goes unresolved.

avatar richard67
richard67 - comment - 18 Jan 2022

If users offend contributors who spend their free time without payment for Joomla so they stop to contribute so there are too few contributors at the end because it is not fun being offended, you should not expect issues to be solved quickly.

avatar sjb1963
sjb1963 - comment - 18 Jan 2022

That's right, this is MY fault.

Thank you for making my point.

avatar Fedik Fedik - change - 18 Jan 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-01-18 16:19:54
Closed_By Fedik
avatar Fedik Fedik - close - 18 Jan 2022
avatar Fedik
Fedik - comment - 18 Jan 2022

I closing it as expected behavior for Joomla 4 when Shared session is enabled.
If you want to be able to force Site User to logout, please disable shared session.

avatar sjb1963
sjb1963 - comment - 18 Jan 2022

That's precisely why it's a bug. NOT a feature.

As explained earlier, "Shared Sessions" has nothing to do with it.

This is NOT the functionality it formerly had in Joomla 3.

STILL A BUG.

avatar rdeutz
rdeutz - comment - 18 Jan 2022

@sjb1963 I give you a week to think about your behaviour.

Add a Comment

Login with GitHub to post a comment