[Haskell-cafe] removing a cookie via ghcjs

Michael Litchard litchard.michael at gmail.com
Thu Jun 7 17:56:10 UTC 2018


Jeremy,

Thank you. I had been experimenting with setCookie, but wasn't setting the
expiration date correctly. All good now.

On Thu, Jun 7, 2018 at 10:28 AM, Jeremy Shaw <jeremy at n-heptane.com> wrote:

> Hello,
>
> 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.
>
> https://stackoverflow.com/questions/2144386/how-to-delete-a-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/d9fbf4f7/attachment.html>


More information about the Haskell-Cafe mailing list