class Marten::HTTP::Session::Store::Cookie
Overview
Cookie session store.
Defined in:
marten/http/session/store/cookie.crInstance Method Summary
-
#create : Nil
Creates a new session store.
-
#flush : Nil
Flushes the session store data.
-
#load : SessionHash
Loads the session store data and returns the corresponding hash.
-
#save : Nil
Saves the session store data.
Instance methods inherited from class Marten::HTTP::Session::Store::Base
[](key : String | Symbol)
[],
[]=(key : String | Symbol, value : String)
[]=,
[]?(key : String | Symbol)
[]?,
accessed? : Bool
accessed?,
create : Nil
create,
cycle_key : Nil
cycle_key,
delete(key : String | Symbol)
delete,
each(*args, **options)each(*args, **options, &) each, empty? : Bool empty?, fetch(key : String | Symbol, default = nil)
fetch(key : String | Symbol, &) fetch, flush : Nil flush, has_key?(key : String | Symbol) has_key?, load : SessionHash load, modified? : Bool modified?, save : Nil save, session_key : String? session_key, size(*args, **options)
size(*args, **options, &) size
Constructor methods inherited from class Marten::HTTP::Session::Store::Base
new(session_key : String | Nil)
new
Instance Method Detail
def create : Nil
#
Description copied from class Marten::HTTP::Session::Store::Base
Creates a new session store.
This method should create a new (empty) session store with an associated key and persist it.
def flush : Nil
#
Description copied from class Marten::HTTP::Session::Store::Base
Flushes the session store data.
def load : SessionHash
#
Description copied from class Marten::HTTP::Session::Store::Base
Loads the session store data and returns the corresponding hash.
def save : Nil
#
Description copied from class Marten::HTTP::Session::Store::Base
Saves the session store data.