-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting cookies: All paths & domains #2
Comments
Note: If get method would not return a string but an object with path & domain of the cookie, I would be able to delete all the cookies because I would know their path & domains |
Had the same issue deleting cookies with deleteAll() method it doesn't work either |
No need to add domain it worked for me like this... |
The browser (and therefore the cookie-service) simply just have no way of knowing the paths and domains of the set cookies. For security reasons, they can only access the cookies of the current path and domain. Here you can find a good explanation of the issue:
The only thing you can do is to take an educated guess, like in this attempt. |
I have same problem! |
I have the same problem as my frontend server hosted on abc.com but api server hosted on xyz.com server. When log out, I want to delete all cookies (e.g accessToken, JSESSIONID) of xyz.com also. |
Whe I try to delete a cookie by simple delete method, it does not work. I think it requires to the path & domain also.
thus, I need to write:
which is very uncomfortable. Moreover, there are some combinations with different paths.
How can I delete all cookies, whatever the path or domain is?
The text was updated successfully, but these errors were encountered: