Basically I have a login system with basic session functionality, and it times out on browser close. I’ve been getting complaints on that so I want to be able to have some click the remember tick and have their session last for say, 30 days.
Basically I have a login system with basic session functionality, and it times out
Share
Set a cookie at the same time you’re setting the
$_SESSION['user_id']for instance. Like this :Save
$tokenin DB in user_id row.Then you set the
$_SESSION['user_id']for users with cookies saved so they don’t have to sign in the normal way:Maybe that works better security wise?