IHP Api Reference
Copyright(c) digitally induced GmbH 2022
Safe HaskellNone

IHP.Controller.Cookie

Description

 
Synopsis

Documentation

setCookie :: (?context :: ControllerContext) => SetCookie -> IO () Source #

Sets a Set-Cookie header

import Web.Cookie

action MyAction = do
    setCookie defaultSetCookie
            { setCookieName = "exampleCookie"
            , setCookieValue = "exampleValue"
            }