summaryrefslogtreecommitdiff
path: root/tests/cookie.ur
blob: b2bca580f30c37b4963330f13cac75844c2dfbea (plain)
1
2
3
4
5
6
7
8
9
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>