]> git.openstreetmap.org Git - rails.git/blobdiff - lib/session_persistence.rb
Remove unnecessary local variable
[rails.git] / 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