Support for cookie based authentication.