Module: ActionDispatch::Session::Compatibility
- Included in:
- AbstractSecureStore, AbstractStore, MemCacheStore
- Defined in:
- lib/action_dispatch/middleware/session/abstract_store.rb
Instance Method Summary collapse
Instance Method Details
#generate_sid ⇒ Object
26 27 28 29 30 |
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 26 def generate_sid sid = SecureRandom.hex(16) sid.encode!(Encoding::UTF_8) sid end |
#initialize(app, options = {}) ⇒ Object
21 22 23 24 |
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 21 def initialize(app, = {}) [:key] ||= "_session_id" super end |