Permalink
Browse files

Initialize sid should just skip instance variables.

  • Loading branch information...
1 parent 69a2c6b commit 3986fcb935c8d5b89ecb86b2f1cbb463460182de @josevalim josevalim committed Oct 4, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 actionpack/lib/action_dispatch/middleware/session/abstract_store.rb
@@ -31,6 +31,13 @@ def initialize(app, options = {})
def generate_sid
ActiveSupport::SecureRandom.hex(16)
end
+
+ protected
+
+ def initialize_sid
+ @default_options.delete(:sidbits)
+ @default_options.delete(:secure_random)
+ end
end
module StaleSessionCheck

0 comments on commit 3986fcb

Please sign in to comment.