summaryrefslogtreecommitdiff
path: root/tests/cookie.ur
blob: cb4f8854b56f831f10b5a6fc644b3f9be7497cc9 (plain)
1
2
3
4
5
6
7
8
cookie c : string

fun main () : transaction page =
    setCookie c "Hi";
    so <- getCookie c;
    case so of
        None => return <xml>No cookie</xml>
      | Some s => return <xml>Cookie: {[s]}</xml>