Module: ActionDispatch::Session::Compatibility

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

Instance Method Summary collapse

Instance Method Details

#generate_sidObject



27
28
29
30
31
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 27

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

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



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

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