views:

78

answers:

1

Is it possible to implement "Remember Me" using jquery? If so, any suggestion how it can be done?

EDIT:

I am trying to remember username and password using jquery cookies.store cookies about username and password and read it the next time and redirect to a specific page.

+2  A: 

Look at this:

jQuery Cookie Plugin

How to implement:

NAVEED
@Naveed this isn't an answer what i was looking for. I know this plugin but i want suggestions to implement "Remember Me" using this jquery cookie plugin.
Pandiya Chendur
@Pandiya Chendur: I have added a tutorial to implement this.
NAVEED
+1 this is an answer and I think don't deserve a -1.
Reigel
@Reigel i ve removed -1. But this answer uses password as cookie value. Is that secure?
Pandiya Chendur
I'm not really sure about security. But why would I put that on the risk. Well, that tutorial is the way to go. Use other variables as you like. You can use password if you really want to. I just don't suggest it. `logged holds a value True until the user logs out.` is what i'm suggesting.
Reigel
May be this thread will help to understand cookie security: http://stackoverflow.com/questions/2100356/is-it-secure-to-store-passwords-in-cookies
NAVEED