123456789_123456789_123456789_123456789_123456789_

Module: ActionDispatch::Session::Compatibility

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: actionpack/lib/action_dispatch/middleware/session/abstract_store.rb

Instance Method Summary

Instance Method Details

#generate_sid

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 28

def generate_sid
  sid = SecureRandom.hex(16)
  sid.encode!(Encoding::UTF_8)
  sid
end

#initialize(app, options = {})

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 23

def initialize(app, options = {})
  options[:key] ||= "_session_id"
  super
end

#initialize_sid (private)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 35

def initialize_sid # :doc:
  @default_options.delete(:sidbits)
  @default_options.delete(:secure_random)
end

#make_request(env) (private)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 40

def make_request(env)
  ActionDispatch::Request.new env
end