I want to extend the login session with cookie expiration time

To discuss the 3 major blog CMS options post here. Topics include Wordpress themes, CMS plugins, and installation and setup.
Post Reply
cedrick
Newbie
Posts: 2
Joined: Tue Mar 12, 2019 2:12 am

Thu Apr 04, 2019 2:30 am

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
Newbie
Posts: 1
Joined: Fri Mar 29, 2019 8:11 pm

Thu Apr 04, 2019 3:32 am

Wordpress have a filter provided to set the cookie expiration.

Code: Select all

https://developer.wordpress.org/reference/hooks/auth_cookie_expiration/
Hope this help :)
Post Reply