Install Joomla 4.
Create a basic user.
Login to the website from the font end.
Review backend. User shows up
Just like in Joomla 3.x, I should be able to log out a user from the backend.
This doesn't even exists at all.
Joomla 4.0.5
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
This is not what I have. Sorry. I have everything except anything at all under the "location" column.
I have both of those options enabled.
and if you set it to shared sessions - no?
Sorry I understand now. Its not a duplicate but I can see why you might think it was
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; ?>
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
Please read the code. If client_id is null, display nothing and don't display the logout button.
Your not listening - I give up!!
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?
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.
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
I understood why ;)
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?
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.
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.
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?
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.
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.
Any way now we need one who is interested to implement this feature.
@HLeithner wont this lead to confusion where only some users are listed with a logout button?
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?
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.
... 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.
And Still the issue goes unresolved.
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.
That's right, this is MY fault.
Thank you for making my point.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-18 16:19:54 |
Closed_By | ⇒ | Fedik |
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.
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.
can not replicate this