I want to extend the login session with cookie expiration time

cedrick

Newbie
Messages
2
Likes
0
Points
1
Hello,

Is it possible to change the expiration time of the logged in cookie? Right now I have to login again from time to time. But I want to extend this time to be much longer, maybe infinite.

The thing is I have created pages on the frontend that requires you to be logged in, and I don't want the user to have to login again.

Is it possible to set the login expiration for frontend to never expire? Or maybe both?

thanks
 
Wordpress have a filter provided to set the cookie expiration.
Code:
https://developer.wordpress.org/reference/hooks/auth_cookie_expiration/

Hope this help :)
 

Members online

No members online now.