Skip to content

Conversation

@LiberalArtist
Copy link
Contributor

Adds a #:shelf-life argument to valid-id-cookie? and request-id-cookie.

The current #:timeout argument does something counterintuitive:
it requires that the cookie have been created before a certain
moment in time, effectively specifying a minimum age.

The new #:shelf-life argument supports specifying a maximum age.

and `request-id-cookie`.

The current `#:timeout` argument does something counterintuitive:
it requires that the cookie have been created *before* a certain
moment in time, effectively specifying a *minimum* age.

The new `#:shelf-life` argument supports specifying a maximum age.
@jeapostrophe jeapostrophe merged commit 66aa20b into racket:master May 5, 2017
@jeapostrophe
Copy link
Contributor

Thanks!

@samth
Copy link
Member

samth commented May 7, 2017

@LiberalArtist
Copy link
Contributor Author

Thanks — I pushed #26 to fix the test. (I'd overlooked that the test cases were using a cookie from a fixed time well over 500 seconds in the past.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants