abstract class Session::Store(T)

Included Modules

Direct Known Subclasses

Defined in:

store.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from module Session::Provider

storage : String storage

Class Method Detail

def self.provider(**args) : Store(T) #

[View source]

Instance Method Detail

abstract def [](key : String) : SessionId(T) #

[View source]
abstract def []=(key : String, session : SessionId(T)) : SessionId(T) #

[View source]
abstract def []?(key : String) : SessionId(T) | Nil #

[View source]
abstract def clear #

[View source]
def create : SessionId(T) #

[View source]
def create_session_cookie(host : String) : HTTP::Cookie #

[View source]
def current_session : SessionId(T) #

[View source]
def data #

[View source]
abstract def delete(key : String) #

[View source]
def delete #

[View source]
def load_from(request_cookies : HTTP::Cookies) : SessionId(T) | Nil #

[View source]
def on(event : Symbol, session_id : String, data : T) #

[View source]
def session_id : String #

[View source]
def session_key #

[View source]
def set_cookies(response_cookies : HTTP::Cookies, host : String = "") : Nil #

[View source]
abstract def size : Int64 #

[View source]
def timeout #

[View source]
def valid? : Bool #

[View source]