mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Initialize sid should just skip instance variables.
This commit is contained in:
parent
69a2c6b041
commit
3986fcb935
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue