# Sessions.idFunction.

id() :: String
id(req::Request) :: String
id(req::Request, res::Response) :: String

Generates a unique session id.

source

# Sessions.startFunction.

start(session_id::String, req::Request, res::Response; options = Dict{String,String}()) :: Session
start(req::Request, res::Response) :: Session

Initiates a session.

source

# Sessions.set!Function.

set!(s::Session, key::Symbol, value::Any) :: Session

Stores value as key on the Session s.

source

# Sessions.getFunction.

get(s::Session, key::Symbol) :: Nullable

Returns the value stored on the Session s as key, wrapped in a Nullable.

source

# Sessions.get!!Function.

get!!(s::Session, key::Symbol)

Attempts to read the value stored on the Session s as key - throws an exception if the key does not exist.

source

# Sessions.unset!Function.

unset!(s::Session, key::Symbol) :: Session

Removes the value stored on the Session s as key.

source

# Sessions.is_setFunction.

is_set(s::Session, key::Symbol) :: Bool

Checks wheter or not key exists on the Session s.

source

# Sessions.persistFunction.

persist(s::Session) :: Session

Generic method for persisting session data - delegates to the underlying SessionAdapter.

source

# Sessions.loadFunction.

load(session_id::String) :: Session

Loads session data from persistent storage - delegates to the underlying SessionAdapter.

source