If you get such an error while setting up paypal payments direct or other modules, PLEASE check your configuration files. cookie domain variable should only have the domain and not the protocol directive such as http:// or https://
define('HTTP_COOKIE_DOMAIN', 'www.domain.com');
define('HTTPS_COOKIE_DOMAIN', 'www.domain.com');