I am trying to figure out how to implement "Remember me" into an app that I am working on. Currently my implementation looks like this.
To me this "seems" secure because the token essentially becomes the user's password and treated accordingly on the server side. However, I'm not sure if this is actually secure or if there is something I am missing.
Instead of cookies you can use HTML5 Web Storage API. It is much more secure and is supported by all the modern browsers(IE8+).
LocalStorage is a nice interface around Web Storage API. It is a form of client persistent storage without any expiry(until the user clears it) or the developer does it from JavaScript.
You can further study this answer difference between Cookie and LocalStorage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With