diff options
Diffstat (limited to 'tests/cookie.ur')
-rw-r--r-- | tests/cookie.ur | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/cookie.ur b/tests/cookie.ur new file mode 100644 index 00000000..b2bca580 --- /dev/null +++ b/tests/cookie.ur @@ -0,0 +1,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> + |