The icookies object
The HTTP cookie facility allows web servers to store key value pairs on the client side and have the client send them back with every request. These cookies are used to store data that is specific to that client instance. For example, in Woof! the session identifier is stored as a cookie.
The cookie values are sent by the client as part of the HTTP headers and are made available to action methods and templates in Woof! through the icookies object. This object, of class CookiesIn provides a standard Map interface for retrieving the values associated with cookies. For example, the following WTF fragment will generate a table of all cookie values received in the current request.
<table> % foreach {cookie value} [icookies get] { <tr><td>$cookie</td><td>$value</td></tr> % } </table>
For information on manipulating cookie values on the client, see the section The ocookies object.