Class: ActionDispatch::Session::AbstractStore

Inherits:
Rack::Session::Abstract::ID
  • Object
show all
Includes:
Compatibility, StaleSessionCheck
Defined in:
actionpack/lib/action_dispatch/middleware/session/abstract_store.rb

Direct Known Subclasses

ActiveRecord::SessionStore

Instance Method Summary collapse

Methods included from StaleSessionCheck

#extract_session_id, #load_session, #stale_session_check!

Methods included from Compatibility

#generate_sid, #initialize

Instance Method Details

#destroy(env) ⇒ Object



81
82
83
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 81

def destroy(env)
  raise '#destroy needs to be implemented.'
end

#destroy_session(env, sid, options) ⇒ Object



75
76
77
78
79
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 75

def destroy_session(env, sid, options)
  ActiveSupport::Deprecation.warn "Implementing #destroy in session stores is deprecated. " <<
    "Please implement destroy_session(env, session_id, options) instead."
  destroy(env)
end