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