# Method: PHPCrawler::enableCookieHandling()

## << Back to class-overview

Enables or disables cookie-handling.
Signature:

public enableCookieHandling($mode)

Parameters:

$mode | bool |

Returns:

bool |

Description:

If cookie-handling is set to TRUE, the crawler will handle all cookies sent by webservers just like a common browser does.
The default-value is TRUE.
It's strongly recommended to set or leave the cookie-handling enabled!