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 7d45d1f..578039f 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