class Marten::HTTP::Session::Store::Cookie
Overview
Cookie session store.
Defined in:
marten/http/session/store/cookie.crInstance Method Summary
- #clear_expired_entries : Nil
-
#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?,
clear_expired_entries : Nil
clear_expired_entries,
create : Nil
create,
cycle_key : Nil
cycle_key,
delete(key : String | Symbol)
delete,
each(*args, **options)each(*args, **options, &) each, empty? : Bool empty?, expires_at expires_at, expires_at=(value : Time) expires_at=, expires_at_browser_close=(value : Bool) expires_at_browser_close=, expires_at_browser_close? : Bool expires_at_browser_close?, expires_in expires_in, expires_in=(value : Time::Span)
expires_in=(value : Int64) expires_in=, 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.