vue-cookie icon indicating copy to clipboard operation
vue-cookie copied to clipboard

Unable to remove cookie on https domain

Open iNDicat0r opened this issue 7 years ago • 3 comments

when the cookie is set on the server side, it has httpOnly set to false, secure to false. I can access the cookie in the SPA, but unable to delete it(set it to past).

iNDicat0r avatar Oct 16 '17 10:10 iNDicat0r

Having Same Issue

tvarwig avatar Oct 19 '17 15:10 tvarwig

What i do for now, is deleting it on the server side..

iNDicat0r avatar Oct 19 '17 15:10 iNDicat0r

doesn't work for me either. from SO

function clearCookie(name) {
  let domain = document.domain
  let path = '/'
  document.cookie = name + '=; expires=' + +(new Date()) + '; domain=' + domain + '; path=' + path
}

makslevental avatar Feb 05 '18 22:02 makslevental