The cookies are set to expire two weeks from the time they are created. From the codex
The expiration period is set in wp-includes/pluggable.php
as shown below:
$expiration = time() + apply_filters( 'auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember );
You can use the auth_cookie_expiration
filter to change this value.
Related Posts:
- Can I programmatically login a user without a password?
- How to login with email only no username?
- Removing username from the ‘wordpress_logged_in’ cookie
- What is $interim_login?
- Woocommerce registration page [closed]
- Share login data/cookies between multiple installations
- Synchronize WordPress user accounts across multiple domains and installations without using WordPress MU
- Is it possible to sign in with user_email in WordPress?
- How to use current_user_can()?
- WordPress registration message
- How can I create a separate blog that is private?
- Email address or username used to login in wordpress
- How to customise wp-login.php only for users who are setting a password for the first time?
- Remove built in wordpress login and use only google auth
- Websites defaced by uploading script using theme editor
- Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past
- User Login Form Outside the Default wp-login Form
- I am not able to login to my wp-admin panel
- Warning: Cannot modify header information – headers already sent
- Block Logged-Out User Access to Directory Outside of WordPress using .htaccess and PHP file
- how to logout user on browser tab or window closes
- Integrate WordPress Blog with Moodle LMS
- Making a client page
- Auto login user with link from Mail
- To be able to login as different user
- How do I Create Forums with bbpress Plugin that can only be Viewed by Logged in Users
- Add class to input form in login form
- Can’t Login to WordPress, No Data Received Error
- Unable to access website admin page – 500 error – how to change landing page
- how to restrict user login whenever if a user puts on hold by editing wp-login action?
- How do I force “users must be registered and logged in” on subsites?
- WordPress/Buddypress login theme function [closed]
- Login redirects and query strings
- How to redirect to specific BLOG Dashboard (after login to Multi-Site)
- How to use a custom login template and still have it linked to the wp-login.php instead of creating a new page?
- Login again after profile update
- Redirect wp-login
- Show reCaptcha on Custom Frontend Login & Register Form [closed]
- Auto Login After Registration
- Problems with is_user_logged_in() | Function in WP
- Changed Wordress Address URL Accidently
- Is the login encrypted before it is sent? If so how to do I encrypt it the same way?
- What speaks against using a custom login.php / register.php to wordpress?
- Why isn’t the login page rate limited by default?
- Login fail with no error
- WordPress login doesn’t work when using preview domain
- Prevent Subscriber Role to login
- Sending new registration meta values to admin by email
- How to check if user is logged into wordpress on non-wordpress pages
- How to authenticate a user with an external webservice
- Login user using wp_signon and WP_User object
- Login failed after cloning live wordpress site to local wampserver
- Log in with email but no password
- Remove a message in login page
- Login form not saving values when login incorrect
- Moving from one host to another – cannot access the dashboard
- Custom login page problem!
- I need to find which is the file that checks the DB for correct login (username, password)
- Abnormal activity at url /my-account/add-payment-method/
- URL with login details included for public members
- Login Based on ip
- Blacklist and Whitelist on login
- URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site
- How to add custom authentication to wordpress login and register
- WordPress new version Version 5.3.2, user login not working after upgrade
- How the wordpress login and signup in react native app
- Link Users to external login db
- WordPress password reset not working
- Can’t login to wordpress, got ERR_EMPTY_RESPONSE after a few minutes
- Change WordPress Login URL to External URL
- User does not exist
- WordPress login is now working, it just refresh the page and nothing happens.
- New user password confirmation sending wrong URL
- wp_signon works localhost but not wokrs https site
- is_logged_in not working after login
- wp_signon() does not authenticate user guidance needed
- How to login to wordpress via Cpanel
- Redirect to previous page after login
- How to password protect pages in WordPress
- Log in to wordpress after executing another form function
- User account activation links are lacking query strings
- A way to redirect users when they log in based on their current page
- Creating login for client / customer that will take them to customized part of site
- wp-login.php just refreshes the form fields
- Login just resets/reset password link also does not work
- WP login pages redirect to homepage (cannot login)
- How to place wp-login.php in page or page template?
- Is there any reason why there’s no “login_header” action at the login page?
- changing WordPress login page
- How to get rid of the username of registration form in theme my login wp plugin?
- Register and Connect links: where are they located?
- Check to see if there a wordpress user account and create one if not outside of wordpress
- Adding A Login Fail Notice
- Give user some feedback when they land on custom login page
- Trouble logging in and/or changing password
- how to add custom word press regisration form in word press 3.5 with out module [closed]
- Warning-session start errors and cannot login to administer
- make a login system for site visitors
- Entire WordPress content disappears
- Remove login link from Reset Password-screen