Some properties and methods of the webpage and the phantom object need a cookie object.
A cookie object is an object that have these properties:
Note: there is an inconsistency in PhantomJS 1.9.x. When you set a cookie, expiry should be in milliseconds since the epoch (1970-01-01), but when you read a cookie, its value is in seconds since the epoch! SlimerJs follows this bad behavior to not break existing PhantomJs scripts.
See webpage.cookies, webpage.addCookie(), webpage.clearCookies(), webpage.deleteCookie(), phantom.addCookie(), phantom.clearCookies(), phantom.cookies, phantom.cookiesEnabled, phantom.deleteCookie() .