diff options
author | José Valim <jose.valim@gmail.com> | 2010-10-04 08:47:36 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-04 08:47:36 +0200 |
commit | 3986fcb935c8d5b89ecb86b2f1cbb463460182de (patch) | |
tree | 202bc2e832dc7c7349a774f7a9a1239745147dc1 | |
parent | 69a2c6b0419177448d9811745cf4035d46b68bbd (diff) | |
download | rails-3986fcb935c8d5b89ecb86b2f1cbb463460182de.tar.gz rails-3986fcb935c8d5b89ecb86b2f1cbb463460182de.tar.bz2 rails-3986fcb935c8d5b89ecb86b2f1cbb463460182de.zip |
Initialize sid should just skip instance variables.
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/session/abstract_store.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb index 679ba7fc8e..64d3a87fd0 100644 --- a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb @@ -31,6 +31,13 @@ module ActionDispatch 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 |