Clear all cookies

Ask questions here, report about problems.
Post Reply
kojon
Posts: 15
Joined: Mon Mar 25, 2019 7:53 pm

Clear all cookies

Post by kojon » Wed Oct 02, 2019 3:03 pm

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.

User avatar
support
Site Admin
Posts: 146
Joined: Fri Feb 22, 2019 3:42 pm

Re: Clear all cookies

Post by support » Wed Oct 02, 2019 4:02 pm

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.

Post Reply