Skip to content

Commit

Permalink
docs: fix maxAge incorrectly saying seconds
Browse files Browse the repository at this point in the history
closes #65
closes #66
  • Loading branch information
p3x-robot authored and dougwilson committed Aug 22, 2017
1 parent d11bbff commit f8a7e42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ JavaScript to see the cookie in `document.cookie`.

##### maxAge

Specifies the `number` (in seconds) to be the value for the [`Max-Age` `Set-Cookie` attribute][rfc-6265-5.2.2].
The given number will be converted to an integer by rounding down. By default, no maximum age is set.
Specifies the `number` (in milliseconds) to be the value for the [`Max-Age` `Set-Cookie` attribute][rfc-6265-5.2.2].
The given number will be converted to an integer representing seconds by rounding down. By default,
no maximum age is set.

**note** the [cookie storage model specification][rfc-6265-5.3] states that if both `expires` and
`maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this,
Expand Down

0 comments on commit f8a7e42

Please sign in to comment.