wai-session-0.3.3: Flexible session middleware for WAI

Safe HaskellNone
LanguageHaskell98

Network.Wai.Session.Map

Synopsis

Documentation

mapStore Source #

Arguments

:: (Ord k, MonadIO m) 
=> IO ByteString

IO action to generate unique session IDs

-> IO (SessionStore m k v) 

Simple session store based on threadsafe IORefs and Map. This only works if your application server remains running (such as with warp). All data is lost when the server terminates (bad for CGI).

WARNING: This session is vulnerable to sidejacking, use with TLS for security.

mapStore_ :: (Ord k, MonadIO m) => IO (SessionStore m k v) Source #

Store using simple session ID generator based on time and Unique