Common Lisp Package: CLACK.MIDDLEWARE.SESSION

# Clack.Middleware.Session - Middleware for session management. ## SYNOPSIS (clackup (builder (<clack-middleware-session> :state (make-instance '<clack-session-state-cookie>)) (lambda (env) (sunless (gethash :counter (getf env :clack.session)) (setf it 0)) `(200 (:content-type "text/plain") (,(format nil "Hello, you've been here for ~Ath times!" (incf (gethash :counter (getf env :clack.session))))))))) ## DESCRIPTION Clack.Middleware.Session provides a session interface. By default this will use cookies to keep session state and store data in memory. You can change this behavior by inheriting `<clack-session-state>' and `<clack-session-store>'. Note the `:clack.session' is a hash table, not a plist, because plists cannot keep state between functions. ## AUTHOR Eitarow Fukamachi (e.arrows@gmail.com) ## SEE ALSO * Clack.Session.State * Clack.Session.Store

README:

FUNCTION

Private

HASH-TABLE-PLIST (TABLE)

Returns a property list containing the keys and values of hash table TABLE.

GENERIC-FUNCTION

Private

Undocumented

COMMIT (THIS ENV)

EXPIRE (THIS ID RES ENV)

EXTRACT (THIS ENV)

FINALIZE (THIS ENV RES)

SAVE-STATE (THIS ID RES ENV)

SLOT-ACCESSOR

Private

Undocumented

STATE (OBJECT)

SETFSTATE (NEW-VALUE OBJECT)

STORE (OBJECT)

SETFSTORE (NEW-VALUE OBJECT)

CLASS

Public

<CLACK-MIDDLEWARE-SESSION>

Clack Middleware for session management.