[Haskell-cafe] removing a cookie via ghcjs

Tom Ellis tom-lists-haskell-cafe-2017 at jaguarpaw.co.uk
Fri Jun 8 06:53:49 UTC 2018


Any idea why this functionality isn't just wrapped up in a function called
'deleteCookie'?

On Thu, Jun 07, 2018 at 12:28:01PM -0500, Jeremy Shaw wrote:
> 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
> 
> 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?


More information about the Haskell-Cafe mailing list