How to Increase/Decrease the time of WordPress Login Session
- December 21, 2015
- Leave a comment
When you work by utilizing an open Wi-Fi network or other individual’s PC, you ought to logout from those gadgets after a short interim of time. But while working at your PC (or some other gadget) with home network, getting kicked out before long may be irritating for you.
In order to avoid such a situation, you can increase or decrease the time of your WordPress login session by using a wp filter “auth_cookie_expiration”:
return 5270400;// 2 Months in seconds
By default, WordPress will keep you logged in for 2 weeks if you check the “Remember Me” option at the time of login. You can set the expiry date of the authorization login cookie by replacing the “5270400” with your preferred time span.
1 thought on “How to Increase/Decrease the time of WordPress Login Session”
Usually I do not read article on blogs, however I would like to say that this write-up very compelled me to take a look at and do so! Your writing style has been surprised me. Thank you, quite great post.