|
|
|
|
| Synopsis |
|
|
|
| Documentation |
|
| type SessionID = String |
|
| type SessionMap = Map String String |
|
| data Session |
| Session data
| | Constructors | | Instances | |
|
|
| initSessions |
| :: String | Backend name (currently only files)
| | -> String | Config of backend (path where to store sessions files)
| | -> IO SessionsConnection | | | Init sessions backend
|
|
|
| sFetch :: SessionsConnection -> SessionID -> IO SessionMap |
| Fetch session data from backend
|
|
| sPush :: SessionsConnection -> SessionID -> SessionMap -> IO () |
| Push session data to backend
|
|
| sFree :: SessionsConnection -> IO () |
| Free sessions backend
|
|
| session :: SessionsConnection -> HttpRequest -> IO Session |
| Acquire session (create new or use existing SessionID)
|
|
| sessionCookie |
| :: String | Cookie expiration date
| | -> SessionID | Session ID
| | -> Header | | | Form SessionID cookie header
|
|
|
| data SessionsConnection |
| Container type for any sessions backend connection
| Instances | |
|
|
| Produced by Haddock version 2.4.2 |