structure of cookie objects

gh-pages
Grzegorz Pawlik 2014-10-11 21:47:50 +02:00
parent 7f1d83b3df
commit 7455c7975d
1 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,20 @@ permalink: api/webpage/property/cookies.html
Get or set Cookies visible to the current URL (though, for setting, use of `page.addCookie` is preferred). This array will be pre-populated by any existing Cookie data visible to this URL that is stored in the CookieJar, if any.
Cookies is an array of objects:
```javascript
{
domain: 'example.com',
expires: 'Sat Oct 11 2014 21:44:33 GMT+0200 (CEST)',
expiry: 1476128618,
httponly: false,
name: 'cookieName',
path: '/',
secure: false,
value: cookieValue
}
```
## Examples
```javascript