diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 10:29:55 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 10:29:55 -0500 |
commit | cf761fbfd28af10fb6e11bdf583f2821abecfe44 (patch) | |
tree | 5857f5dc14c0b71b191d1a267c9a8fdfcee03810 /tests/cookie.ur | |
parent | 52bcb1e926570966efe93672e968999f4f2e14f8 (diff) |
Cookies through elaborate
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> + |