WordPress Logout Only If User Click Logout or If User Delete Browser History
You can use the auth_cookie_expiration filter to change the expiration time of the cookie WordPress sets to remember you. The user won’t be logged out unless they change browser or clear their cookies (normally part of clearing history). The problem is that you can’t set a cookie to never expire, so you have to set … Read more