开发者

Drupal - Admin stay logged in forever

Quick question - Is there any simple way (module perhaps?) to set the admin account to stay logged in forever?

I admin a bunch of Drupal sites and am getting really tired of constantly logging in after whatever interval it开发者_如何学JAVA logs out automatically.


Use http://drupal.org/project/autologout

You can set the administrator to automatically logout after an insane amount of time (so it effectively becomes forever). Other users can be excluded from this setting so it does not apply to them.

Enable the module and checkout the settings at /admin/settings/autologout

This method is better than tweaking the session expiry related ini options in settings.php because then they apply to everyone and not only administrators. So it would have the bad side effect making everybody stay logged in forever.

P.S. these are the ini settings that determine session expiry in Drupal in settings.php

ini_set('session.cookie_lifetime',  2000000); // in seconds; approx 23 days
ini_set('session.gc_probability', 1); 
ini_set('session.gc_divisor', 100);
// see http://www.php.net/manual/en/ini.list.php for explanations


No. The session is a function of your PHP installation (session controls) and your browser (it is a cookie-based session). For security concerns, I would highly recommend not doing that anyway.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜