MyBB Community Forums

Full Version: does making the login time of the admin longer done in the CP?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi
i want to make the login duration time longer so i don't need to log to the admin user every day or even more.

is that done through the control panel or by accessing the database at the webhost?

if you tell me what function i need i can search it myself.

thank you
You'd need to change this line in ./admin/index.php:

if($admin_session['lastactive'] < TIME_NOW-7200)

The 7200 is the number of seconds the session lasts, in this case 2 hours.
thanks Smile
do i need to use ftp or can i use the webhost control panel for that?

anything else i may want to know before i do the change?

i think i've succeeded by re uploading the file after editing in the control panel of the webhost
Make a note Keep a record of core changes you make. You may need to do them again after an update.
i see
thanks for the tip