Configuring login session time on Wordpress site
Follow the steps below to edit your Theme setting file:- Log in to your WordPress site with an administrator account.
-
On the Dashboard in the left sidebar, click Appearance, and then click Theme Editor. 🚧 Important
Important: You will not be able to roll back to your earlier Theme configuration after any edits. It is recommended to save the Theme file before proceeding with the edits.
-
On the Theme Editor, select the Theme you want to edit from the dropdown:
-
The files for this selected theme is listed on the right column under Theme Files:
-
Click on the file named “functions.php”:
- Insert the following code intofunctions.php:
- Save the file and exit the editor.
- The login session is now extended by 1 year instead of the default session by the login session cookie.