class Marten::HTTP::Session::Store::Cookie

Overview

Cookie session store.

Defined in:

marten/http/session/store/cookie.cr

Instance Method Summary

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?, 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 clear_expired_entries : Nil #

[View source]
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.


[View source]
def flush : Nil #
Description copied from class Marten::HTTP::Session::Store::Base

Flushes the session store data.


[View source]
def load : SessionHash #
Description copied from class Marten::HTTP::Session::Store::Base

Loads the session store data and returns the corresponding hash.


[View source]
def save : Nil #
Description copied from class Marten::HTTP::Session::Store::Base

Saves the session store data.


[View source]