alfhen / vue-cookie

A Vue.js plugin for manipulating cookies
MIT License
822 stars 72 forks source link

Unable to remove cookie on https domain #27

Open iNDicat0r opened 7 years ago

iNDicat0r commented 7 years ago

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).

tvarwig commented 7 years ago

Having Same Issue

iNDicat0r commented 7 years ago

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

makslevental commented 6 years ago

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
}