Module: ActionDispatch::Session::Compatibility

Included in:
AbstractStore, MemCacheStore
Defined in:
lib/action_dispatch/middleware/session/abstract_store.rb

Instance Method Summary collapse

Instance Method Details

#generate_sidObject



35
36
37
38
39
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 35

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

#initialize(app, options = {}) ⇒ Object



30
31
32
33
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 30

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