[TYPO3-core] Gremlin #1573: Admin user is logged out on testing beuser settings

Michael Stucki michael at typo3.org
Sun Nov 6 20:31:58 CET 2005

I've seen this nicely working on Sebastians computer. I think the only
problem with this could be that an admin might visit a users computer to
change some setting, test it, and forget to switch back to after this. So
the user is now logged in as himself, but as soon as he presses the logout
button, he will be back in the Admin session!

Therefore, Sebastian has added some kind of highlighting to the logout

With this change, I don't see this very nice change as a big risk, so



Sebastian Kurfuerst wrote:

> User writes:
> When you're setting up be users you have to check it via user admin
> module where you can substitute the user.
> The is is basically a nice thing, the problem ist, that you have to log
> out and re-login in as admin eveytime you have to check a user.
> It would be nice if the admin user can stay logged in.
> Solution:
> - add a DB field "ses_backuserid" to the be_sessions table which stores
> the UID where the user will switch back to after logout (defaults to 0)
> - on using the switchUser feature, set ses_backuserid
> - on logout, use already available hook to switch back user if
> ses_backuserid is set.
> - only if the user admin module is installed, ses_backuserid is taken
> into account
> Notes:
> - maybe it is cleaner to add ses_backuserid to the database when
> installing the user admin module, but as it is a default and a sysext, I
> see no problem in updating stddb/tables.sql. Comments are welcome.
> Greets, Sebastian

Use a newsreader! Check out

More information about the TYPO3-team-core mailing list