Common Lisp Package: CLACK.MIDDLEWARE.SESSION.COOKIE

# Clack.Middleware.Session.Cookie - Session middleware that saves session data in the cookie. ## SYNOPSIS (clackup (builder (<clack-middleware-session-cookie> :secret "secret key here") app) ## AUTHOR Eitarow Fukamachi (e.arrows@gmail.com) ## SEE ALSO * Clack.Middleware.Session * Clack.Session.State

README:

FUNCTION

Private

BASE64-STRING-TO-STRING (INPUT &KEY (URI NIL))

Decode base64 string to string

HASH-TABLE-PLIST (TABLE)

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

STRING-TO-BASE64-STRING (INPUT &KEY (URI NIL) (COLUMNS 0))

Encode a string array to base64. If columns is > 0, designates maximum number of columns in a line and the string will be terminated with a #Newline.

Undocumented

HMAC-SHA1-HEX-STRING (STRING SECRET)

GENERIC-FUNCTION

Private

MARSHAL (THING &OPTIONAL CIRCLE-HASH)

Generates an sexp when called with an object. The sexp can be used to send it over a ntowrk or to store it in a database etc.

UNMARSHAL (THING)

Returns an object when called with a wellformed marshal sexp.

Undocumented

COMMIT (THIS ENV)

EXTRACT (THIS ENV)

SAVE-STATE (THIS ID RES ENV)

SERIALIZE (THIS ID SESSION)

SIGNATURE (THIS BASE64)

SLOT-ACCESSOR

Private

SECRET (OBJECT)

Server side secret to sign the session data using HMAC SHA1.

SETFSECRET (NEW-VALUE OBJECT)

Server side secret to sign the session data using HMAC SHA1.

Undocumented

STATE (OBJECT)

SETFSTATE (NEW-VALUE OBJECT)

CLASS

Public

Undocumented

<CLACK-MIDDLEWARE-SESSION-COOKIE>

Private

<CLACK-MIDDLEWARE-SESSION>

Clack Middleware for session management.