This article describes simple steps to get you a more extended login session on WordPress instead of having to enter login credentials multiple times in a short time.
Follow the steps below to edit your Theme setting file:
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 into functions.php:
add_filter( 'auth_cookie_expiration', 'extend_login_session' ); function extend_login_session( $expire ) { return 31556926; // seconds for 1 year time period }
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.