• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pillarjs / cookies / 251 / 5
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2018 06:02PM UTC
Files 1
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Feb 2018 06:00PM UTC coverage: 100.0%. Remained the same
251.5

Pull #94

travis-ci

web-flow
maxAge should not be translated to expires

The expires argument includes the timezone, but the UA clock might
be offset by a couple of hours (incorrect timezone), which would
end-up in the following situation:

 - UTC is 2018-01-15 10:00 + 00:00
   Client has localtime: 2018-01-15 10:00 - 08:00 (8h in the future)
 - Server set cookie with maxAge = 30min
 - Server send:
     Set-Cookie: foo=bar; expires=2018-01-15T10:30:00+00:00
 - UA immediately expires the cookie
 - UA send a new request without cookie.

Sadly incorrect UA clock is a common problem (at least for us),
maxAge is a correct option (as the time is calculated relative
to UA clock), but this is not an available option in this library.

Signed-off-by: Arthur Gautier <baloo@gandi.net>
Pull Request #94: maxAge should not be translated to expires

101 of 108 branches covered (93.52%)

110 of 110 relevant lines covered (100.0%)

21.81 hits per line

Source Files on job 251.5
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 251
  • Travis Job 251.5
  • b9765182 on github
  • Prev Job for on master (#250.8)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc