]> git.openstreetmap.org Git - rails.git/commitdiff
Ignore exceptions from old sessions
authorTom Hughes <tom@compton.nu>
Mon, 23 Sep 2013 11:36:53 +0000 (12:36 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 23 Sep 2013 11:36:53 +0000 (12:36 +0100)
lib/session_persistence.rb

index 7d45d1fc4e59af2c067aca4049f2f7d56808861f..578039f5815e73ee6fa782b62f832e1b9b002a4a 100644 (file)
@@ -51,5 +51,7 @@ module SessionPersistence
     if session[session_persistence_key]
       request.session_options[:expire_after] = session[session_persistence_key]
     end
+  rescue
+    reset_session
   end
 end