Common Lisp Package: CLACK.SESSION.STATE

# Clack.Session.State - Basic parameter-based session state. ## DESCRIPTION Clack.Session.State maintains session state by passing the session through the request params. Usually you wouldn't use this because this cannot keep session through each HTTP request. This is just for creating new session state manager. ## AUTHOR Eitarow Fukamachi (e.arrows@gmail.com) ## SEE ALSO * Clack.Middleware.Session

README:

FUNCTION

Private

GENERATE-RANDOM-ID

Generate a random token.

GENERIC-FUNCTION

Public

Undocumented

EXPIRE (THIS ID RES &OPTIONAL OPTIONS)

EXTRACT-ID (THIS ENV)

FINALIZE (THIS ID RES OPTIONS)

GENERATE-ID (THIS &REST ARGS)

SESSION-ID (THIS ENV)

VALID-SID-P (THIS ID)

Private

SCAN (REGEX TARGET-STRING &KEY START END REAL-START-POS ((REAL-START-POS *REAL-START-POS*) NIL) (END (LENGTH TARGET-STRING)) (START 0))

Searches TARGET-STRING from START to END and tries to match REGEX. On success returns four values - the start of the match, the end of the match, and two arrays denoting the beginnings and ends of register matches. On failure returns NIL. REGEX can be a string which will be parsed according to Perl syntax, a parse tree, or a pre-compiled scanner created by CREATE-SCANNER. TARGET-STRING will be coerced to a simple string if it isn't one already. The REAL-START-POS parameter should be ignored - it exists only for internal purposes.

SLOT-ACCESSOR

Public

Undocumented

SESSION-KEY (OBJECT)

SETFSESSION-KEY (NEW-VALUE OBJECT)

SID-GENERATOR (OBJECT)

SETFSID-GENERATOR (NEW-VALUE OBJECT)

SID-VALIDATOR (OBJECT)

SETFSID-VALIDATOR (NEW-VALUE OBJECT)

CLASS

Public

Undocumented

<CLACK-SESSION-STATE>