You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clearAll(): This method removes all cookies from the cookie store. Any cookies set by your application or by other websites will be removed. This method takes no arguments and returns a promise that resolves when the cookies have been cleared.
flush(): This method saves all cookies to the cookie store immediately. Normally, cookies are saved periodically in the background, but this method forces an immediate save. This method takes no arguments and returns a promise that resolves when the cookies have been saved.
removeSessionCookies(domain: string): This method removes all session cookies for a specific domain. Session cookies are cookies that have no expiration time and are deleted when the user closes the application or the browser. This method takes a single argument, the domain of the cookies to remove, and returns a promise that resolves when the cookies have been removed.
In summary, clearAll removes all cookies, flush saves all cookies immediately, and removeSessionCookies removes only session cookies for a specific domain. It's important to note that these methods operate on the global cookie store, so if you have multiple applications running in the same environment, these methods will affect all of them.
Is this correct?
(I read it like when calling .clearAll() I do not need to call .removeSessionCookies as well?)
The text was updated successfully, but these errors were encountered:
Chat GPT explains it like this
Is this correct?
(I read it like when calling
.clearAll()
I do not need to call.removeSessionCookies
as well?)The text was updated successfully, but these errors were encountered: