Page 1 of 1
Clear all cookies
Posted: Wed Oct 02, 2019 3:03 pm
by kojon
Hello.
Can I clear all cookies at once?
I've found it:
$browser->clear_cookie("cookie name");
but not found like such a $browser->clear_all_cookies();
Thanks for your help.
Re: Clear all cookies
Posted: Wed Oct 02, 2019 4:02 pm
by support
Hi.
If you do not pass the name to the function $browser->clear_cookies(""); cleaned all at once.
A function of the input parameters it accepts:
match_name - a template to search for sites whose cookies need to be cleared (part of the address), if an empty string is set - all are cleared.
clear_session - clear session cookies (true) or not clear (false) when executing the command. Session cookies-tracking the state of the user's access session.
clear_flash - whether to clear (true) or not to clear (false) flash cookies.