abstract class Session::Store(T)
- Session::Store(T)
- Reference
- Object
Included Modules
Direct Known Subclasses
Defined in:
store.crClass Method Summary
Instance Method Summary
- #[](key : String) : SessionId(T)
- #[]=(key : String, session : SessionId(T)) : SessionId(T)
- #[]?(key : String) : SessionId(T) | Nil
- #clear
-
#cookie(host : String)
Creates the session cookie
-
#create
Creates a new session for the given data Data is generic
- #current_session : SessionId(T)
- #data
- #delete(key : String)
-
#delete
Deletes the current session
-
#load_from(request_cookies : HTTP::Cookies) : SessionId(T) | Nil
Loads the session from a HTTP::Cookie
- #session_id
- #set_cookies(response_cookies : HTTP::Cookies, host : String = "")
- #size : Int64
- #valid?
Instance methods inherited from module Session::Provider
encrypt_and_sign(value)
encrypt_and_sign,
on(event : Symbol, *args)
on,
prefixed(session_id)
prefixed,
session_key
session_key,
storage : String
storage,
timeout
timeout,
verify_and_decrypt(value)
verify_and_decrypt
Class Method Detail
Instance Method Detail
Loads the session from a HTTP::Cookie