Spock-core-0.14.0.0: Another Haskell web framework for rapid development
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Spock.Internal.Cookies

Synopsis

Documentation

data CookieSettings Source #

Cookie settings

Constructors

CookieSettings 

Fields

data CookieEOL Source #

Setting cookie expiration

Constructors

CookieValidUntil UTCTime

a point in time in UTC until the cookie is valid

CookieValidFor NominalDiffTime

a period (in seconds) for which the cookie is valid

CookieValidForSession

the cookie expires with the browser session

CookieValidForever

the cookie will have an expiration date in the far future

defaultCookieSettings :: CookieSettings Source #

Default cookie settings, equals

CookieSettings
  { cs_EOL      = CookieValidForSession
  , cs_HTTPOnly = False
  , cs_secure   = False
  , cs_domain   = Nothing
  , cs_path     = Just "/"
  }