Helma logo
helma.org » Home > Stories > res.unsetCookie()

res.unsetCookie()

Causes a previously set cookie to be discarded.

Syntax
res.unsetCookie(nameString)

Example
res.unsetCookie("username");

Note that res.unsetCookie will only work when discarding cookies for the default path and domain. To discard a cookie for a specific path or domain, use res.setCookie instead:
res.setCookie("username","",0,"/path","helma.org");


... comment


Page last modified on 2005-09-14 09:13 by czv