How to use cookies when user login

I’m trying to make a system whereby when the user clicks on login, it will automatically log them in without asking them for details probably because there information has been saved using the browser cookies.

How do I go about something like this?

What exactly are you trying to accomplish? Will users have already signed up on your app (aka entered their details/email/password)?

Sure…
They must have signed up, after that login to the app. So on subsequent login, if the cookie has not expired they should go to the dashboard

As long as you check the box to keep the user logged in, they will stay logged in on their device for quite a while

This topic was automatically closed after 70 days. New replies are no longer allowed.