summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-04 18:35:40 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-04 18:35:40 -0400
commitcb1e09a7ef061cd3c1ca7cf5793d09b2aacb1536 (patch)
tree180bc83085a718dae792db5abd53d72d6768dae9 /app/helpers
parentc61cbdc810cb5b00fa24cf33e34b261d36edaecc (diff)
Cookie size 20 minutes
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/sessions_helper.rb4
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