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
28 29 30 31 32 |
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 28 def generate_sid sid = SecureRandom.hex(16) sid.encode!(Encoding::UTF_8) sid end |
#initialize(app, options = {}) ⇒ Object
23 24 25 26 |
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 23 def initialize(app, = {}) [:key] ||= "_session_id" super end |