Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/HtmlUnit/htmlunit
/ clearCookies
Method
clearCookies
src/main/java/org/htmlunit/CookieManager.java:163–169 ·
view source on GitHub ↗
Removes all cookies. If disabled, this does nothing.
()
Source
from the content-addressed store, hash-verified
161
* If disabled, this does nothing.
162
*/
163
public
synchronized
void
clearCookies() {
164
if
(!isCookiesEnabled()) {
165
return
;
166
}
167
168
cookies_.clear();
169
}
170
}
Callers
2
basicBehavior
Method · 0.95
clear
Method · 0.45
Calls
2
isCookiesEnabled
Method · 0.95
clear
Method · 0.45
Tested by
1
basicBehavior
Method · 0.76