MyBB Community Forums

Full Version: How to disable the logout timeout for admin user?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way I can disable the timeout for the admin login?

I looked at "How to set session timeout? My last try to find an answer." and also looked at the "Control Panel Preferences (Global)", but couldn't find this setting.

How can I do this?

Eco
below code segment is from admin/index.php of MyBB 1.6.10 (lines --> 284 - 290)
// Admin CP sessions 2 hours old are expired
				if($admin_session['lastactive'] < TIME_NOW-7200)
				{
					$login_message = $lang->error_admin_session_expired;
					$db->delete_query("adminsessions", "sid='".$db->escape_string($mybb->cookies['adminsid'])."'");
					unset($mybb->user);
				}
Thanks for the answer ".m. " , I think it worked Smile