From ffcd4d0450e7b0db7f383707c2c4be940afb9182 Mon Sep 17 00:00:00 2001 From: Oscar Sales Date: Sat, 20 Aug 2016 11:38:24 +0200 Subject: [PATCH] BugFix - Set correct cookie expiration time when cookie accepted and cookie_type is fixed_duration --- app/controllers/cookie_alert/cookies_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/cookie_alert/cookies_controller.rb b/app/controllers/cookie_alert/cookies_controller.rb index 01998d5..1d7ab5f 100644 --- a/app/controllers/cookie_alert/cookies_controller.rb +++ b/app/controllers/cookie_alert/cookies_controller.rb @@ -22,7 +22,7 @@ def cookie_accepted elsif CookieAlert.config.cookie_type == 'fixed_duration' # Set a fixed duration cookie - cookies.permanent.signed[CookieAlert.config.cookie_name.to_sym] = { value: 'accepted', expires: CookieAlert.config.num_days_until_cookie_expires.days.from_now } + cookies.signed[CookieAlert.config.cookie_name.to_sym] = { value: 'accepted', expires: CookieAlert.config.num_days_until_cookie_expires.days.from_now } else @@ -43,4 +43,4 @@ def cookie_accepted end end -end \ No newline at end of file +end