I want to extend the login session with cookie expiration time

cedrick

New Member
Mar 12, 2019
2
0
0
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
 

NikolasXD55

New Member
Mar 30, 2019
1
0
0
Wordpress have a filter provided to set the cookie expiration.
Code:
https://developer.wordpress.org/reference/hooks/auth_cookie_expiration/
Hope this help :)