Why not autologout user with uid=1

drupal4peter - February 5, 2009 - 11:38
Project:Automated Logout
Version:6.x-2.2
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

what is the deeper reason to not autologout the admin (uid=1), fixed in the code ?

If one must be autologout, it should'nt be the admin ? To avoid that another person may continue with admin's session.

Thank you.

#1

roball - February 28, 2009 - 17:21
Version:5.x-2.2» 6.x-2.1

I can confirm this behavior being also in version 6.x-2.1. It is important to know that the super admin (uid=1) will never be logged out automatically!

#2

kakarot - November 17, 2009 - 15:09

You always can change from autologout.module the conditions like if ($user->uid < 2 || _autologout_by_role()) { to if (_autologout_by_role()) { and if (empty($account->uid) || $account->uid == 1) { to if (empty($account->uid)) {

#3

roball - November 19, 2009 - 21:47

Yes, and thanks for the suggestion - but this should be put into the official code by this module's author. I consider this problem to be a security risk. To autologout the "root" user is more important than taking care of all the other users.

#4

roball - November 19, 2009 - 21:48
Version:6.x-2.1» 6.x-2.2
Category:support request» feature request
Priority:minor» normal
 
 

Drupal is a registered trademark of Dries Buytaert.