I'm building a simple web application in newlisp using the Dragonfly framework, which I really like using. However I can't seem to delete cookies using the (Response:cookie) command.
I can set the cookie easily using this code:
Code: Select all
(Response:cookie "monarch" username (date-value 2011 12 12) "/") ; open a cookie to say we are signed in
According to the Dragonfly reference manual, the way to get rid of the cookie is to reference it and assign it a value of "nil":
Code: Select all
(Response:cookie "monarch" nil) ; delete cookie
I'm using newLISP 10.2.8 and Dragonfly 0.70 on Apache on Linux.