diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-04 18:35:40 -0400 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-04 18:35:40 -0400 |
commit | cb1e09a7ef061cd3c1ca7cf5793d09b2aacb1536 (patch) | |
tree | 180bc83085a718dae792db5abd53d72d6768dae9 /app/helpers | |
parent | c61cbdc810cb5b00fa24cf33e34b261d36edaecc (diff) |
Cookie size 20 minutes
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/sessions_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb index 89e5ef3..60ddfa6 100644 --- a/app/helpers/sessions_helper.rb +++ b/app/helpers/sessions_helper.rb @@ -5,8 +5,8 @@ module SessionsHelper @session.save # FIXME: error handling @token = Session.hash_token(raw_token) - cookies.permanent[:remember_token] = raw_token - + #cookies.permanent[:remember_token] = raw_token + cookies.permanent[:remember_token] = { value: remember_token, expires: 20.minutes.from_now.utc } #set the current user to be the given user @current_user = user end |