Question: How to stay logged in for longer periods in wordPress?
Answer: Using below hook/filter/code user will stay stay logged in for longer periods in wordPress.
Answer: Using below hook/filter/code user will stay stay logged in for longer periods in wordPress.
// WordPress filter to Stay logged in for longer periods add_filter( 'auth_cookie_expiration', 'keep_me_logged_in' ); function keep_me_logged_in( $expirein ) { return 31556926; // 1 year in seconds }
No comments:
Post a Comment