Module
Biscotti.Session.Store
- Package
- purescript-biscotti-session
- Repository
- drewolson/purescript-biscotti-session
#SessionStore Source
newtype SessionStore a
Constructors
SessionStore { create :: Creater a, destroy :: Destroyer, get :: Getter a, set :: Setter a }
#create Source
create :: forall a. EncodeJson a => SessionStore a -> Creater a
Create a cookie representing a new session
#destroy Source
destroy :: forall a. EncodeJson a => SessionStore a -> Destroyer
Destroy the session represented by a cookie and expire the cookie
#get Source
get :: forall a. DecodeJson a => SessionStore a -> Getter a
Retrieve the session represented by a cookie
#set Source
set :: forall a. EncodeJson a => SessionStore a -> Setter a
Update a cookie to represent a new session