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