Hacker News new | ask | show | jobs
by scrpn 2542 days ago
what you put in that cookie and how did you matched on server side? could you share some pointers?
1 comments

For something really basic a simple hash like "username+my_secret" does the trick and is easy to check with nothing stored on the server side. I however have always created a uuid for each new device login and store in DB so the user can see a list of all devices used to login.
sounds good!