[Haskell-cafe] removing a cookie via ghcjs

Jeremy Shaw jeremy at n-heptane.com
Thu Jun 7 17:28:01 UTC 2018


There is no underlying 'deleteCookie' support in browsers. Instead you call
'setCookie' and set the expiration date to be in the past. Then the browser
will delete the cookie.


Not sure which getCookie function you are using, but there is likely a
setCookie function nearby.

- jeremy

On Thu, Jun 7, 2018 at 11:41 AM, Michael Litchard <
litchard.michael at gmail.com> wrote:

> Using ghcjs, I am able to read a cookie using getCookie. There's no
> corresponding remove/deleteCookie that I can find. Could I get some
> assistance in how to remove the same cookie I can see using getCookie?
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180607/9d4abf34/attachment.html>

More information about the Haskell-Cafe mailing list