Module: ActionDispatch::Session::Compatibility
- Included in:
- AbstractStore, CookieStore, MemCacheStore
- Defined in:
- lib/action_dispatch/middleware/session/abstract_store.rb
Instance Method Summary collapse
Instance Method Details
#generate_sid ⇒ Object
33 34 35 36 37 |
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 33 def generate_sid sid = SecureRandom.hex(16) sid.encode!('UTF-8') if sid.respond_to?(:encode!) sid end |
#initialize(app, options = {}) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 26 def initialize(app, = {}) [:key] ||= '_session_id' # FIXME Rack's secret is not being used [:secret] ||= SecureRandom.hex(30) super end |