I worked long on this one. It is because of the WordPress remember me. Use this code in your theme’s functions.php
and it should fix your issue:
function myplugin_cookie_expiration( $expiration, $user_id, $remember ) {
return $remember ? $expiration : 180;
}
add_filter( 'auth_cookie_expiration', 'myplugin_cookie_expiration', 99, 3 );
Related Posts:
- How reduce wordpress login session timeout time?
- Custom Connect to Facebook, problem logging in/logging out
- Session Experies and Get Logged Out Within Few Minutes
- Preventing session timeout
- Removing username from the ‘wordpress_logged_in’ cookie
- Disable WordPress 3.6 idle logout / login modal window / session expiration
- How to pass users back and forth using session data?
- How to fake a WordPress login?
- Does wp_logout_url() destroy a session? (Logging out question)
- share login/logout sessions across two installs?
- How can I test the login for an expired session?
- How do I extend auto logout on idle OR redirect inline popup
- How long do users stay logged in if they DON’T check remember me?
- How to get login data (session) outside WordPress?
- How can I test the login for an expired session?
- How does WordPress handle sessions?
- Preexisting login to change to logout link in sub menu
- WordPress as webapp login session
- Share WordPress login info with other PHP app
- WordPress error on log out ‘Not Permitted’ and can’t log out
- Add logout link when logged in, make it disappear when logged out?
- Lock out all WordPress Administrators except two specific users
- How to remove ‘wordpress…’ text from page titles in tabs
- One time login on 2 different WordPress sites
- add class to element if user is not logged in [closed]
- End session screen not close automatically after login
- Problem with is_user_logged_in() function in some pages
- wordpress login loop and session problem
- Get WordPress logged in username from root domain when WP is installed in a subfolder
- Why deleting/removing cookies in WordPress does not log me out from admin?
- User not logged first time I open the homepage
- wp_logout logging everyone out instead of just the user that clicked the logout link!
- How to limit user to login only once per session
- how to manage Session in WordPress using custom login?
- Inconsistent login state
- Can i hide a dynamically created div to logged out users?
- Increase of failed login attempts, brute force attacks? [closed]
- How to prefill WordPress registration with social details
- Integrate recaptcha and wp_signon – what is needed?
- Programmatically log in a wordpress user
- Send reset password link to user from custom lost password form
- Change sign-on URLs for security purposes
- Can’t stop hacker trying to get admin access in WordPress blog after trying many ways [closed]
- Hook for fail and successful login actions
- How does WordPress track that a certain User is Logged-In
- I keep getting logged out in Firefox
- Admin user getting message ‘You need a higher level of permission’
- How to implement Google reCaptcha without installing a plugin?
- Problem with logging in WP users automatically
- advance membership managment
- Logins through alias
- Redirect users to a front end wp login page
- Redirecting or displaying a message on first login
- Deny a user role to log in after register
- wp_get_referer not working properly after wp_redirect
- Login Button CSS
- Is there a better way than checking user is logged in to show or hide adminbar?
- How do I replace “Username” in the WordPress login form?
- How can I do a URL redirection when an user uses wrong login details?
- Show errors on custom login form [duplicate]
- Index page and random posts needs a forced refresh in order to show new content
- How to change wordpress Log In text
- Can I (and should I) change the login-URL from functions.php?
- Code for Log Out Button Yields Strange URL
- Display first name instead of username
- How can I make a login just like on wordpress.org?
- How to Prevent Brute Force Attack on WordPress
- autocomplete=”off” WordPress Login
- Logout Redirect and also WP-login.php Redirect
- Why there is a 302 status when my account and password are right?
- Cannot Get User id after login success in file wp_login.php
- authenticate user without redirecting
- Create front end member login
- Logging in to the frontend works correctly but not for WP-Admin
- logout users with specific role after close browser tab
- I can’t access my wp-admin dashboard
- Unable to execute Ajax request, status code 400
- Make an order of products without login
- Updated : how to make email optional while user registration using default wordpress form
- Unable to login with email address as the username – WordPress
- Bypass login page
- Login issue with subdomain installs
- After moving WordPress to its own directory, login doesn’t work
- WordPress login is not showing , there is warning?
- WordPress Redirect After logging
- Issue logging in from second computer
- Login problem with https
- How to Create a login for for subscribers only
- Custom Field For Login
- Opening protected page with cookie?
- Login user after registration programmatically
- wp_lostpassword_url not escaped
- Directory authentication initially succeeded, but no valid profile was found (“get entries” procedure)
- Trim the repeated value in URL
- Warning: session_start(): Cannot send session cookie – headers already sent by
- I can’t login to wordpress dashboard without SSH
- Member Area Login with Fail Message
- Username character requirements
- Users cannot log in using popup
- Entire WordPress content disappears