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



24
25
26
27
28
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 24

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

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



19
20
21
22
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 19

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