i am using latest devise gem
to authenticate and authorize user.Now i want to autologin any user who has logged(without using remember me
) in earlier on same browser which can be done using session
and storing session in the cookie
.This is what i am supposed to do:-
- i have included
cookie.js
- Now i will set a
user_session
after login and set thissession
in thecookie
- And i will check it every time before creating a new session/Before login
So i am going right or missing something??how can i go ahead with this plan?Any other better option.??
Aucun commentaire:
Enregistrer un commentaire