Module

Biscotti.Session.Store

Package
purescript-biscotti-session
Repository
drewolson/purescript-biscotti-session

#Creater Source

type Creater a = a -> Aff (Either String Cookie)

#Getter Source

type Getter a = Cookie -> Aff (Either String a)

#SessionStore Source

newtype SessionStore a

Constructors

#Setter Source

type Setter a = a -> Cookie -> Aff (Either String Cookie)

#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