This module is meant to be used mainly by Session backend developers, who would naturally need access to ISessionManager class internals. You can also use it if you need low-level access to the backend functionality.
- data SessionManager = forall a . ISessionManager a => SessionManager a
- class ISessionManager r where
To use sessions in your application, just find a Backend that would
produce one for you inside of your
CookieSession for a built-in option
that would get you started.
Load a session from given payload.
Will always be called before any other operation. If possible, cache and do nothing when called multiple times within the same request cycle.
Commit session, return a possibly updated paylaod
Insert a key-value pair into session
Lookup a key in session
Delete a key in session
Return a session-specific CSRF protection token. See
help in creating the value.
Return all key-value pairs as an association list