From 7d582be79afd48aed4571b46960eb72d56ae8ae4 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 2 Aug 2023 17:37:09 -0700 Subject: [PATCH] Invalidate old session cookies The session format changed, so we change the session cookie name rather than have things crash about it! (I hope the actual prod behavior is to ignore bad cookies rather than crash? But I figure this is more reliable anyway.) --- config/initializers/session_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 54b6394c..713f0a90 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,3 @@ # Be sure to restart your server when you modify this file. -OpenneoImpressItems::Application.config.session_store :cookie_store, key: '_openneo_impress_session' +OpenneoImpressItems::Application.config.session_store :cookie_store, key: '_openneo_impress_session_v2'