$use("codex.util") $use("codex.http")
$do(getRequest().getCookies()) $declare(Enumeration cookies = getRequest().getCookies()) $while(cookies.hasNext()) $declare(Cookie cur = <Cookie>cookies.next()) <li>Got cookie: $(cur.toString()) $endwhile $do(delete cookies)
$declare(Cookie cookie = new Cookie())
$do(cookie.setName("maka")) $do(cookie.setValue("shlaka")) $do(cookie.setVersion("1"))
<pre> Cookie Name : $(cookie.getName()) Cookie Value : $(cookie.getValue()) Cookie Domain : $(cookie.getDomain()) Cookie Version : $(cookie.getVersion()) Cookie Path : $(cookie.getPath()) Cookie Comment : $(cookie.getComment()) Is Cookie Secure : $(cookie.isSecure())
Cookie : $(cookie.toString()) </pre>
$declare(HTTPResponse res = getResponse()) $do(res.setCookie(cookie))
| |
Copyright © 2000 - 2003 David Hakim