Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Support a cookie MaxAge of 0. #39

Merged
merged 1 commit into from
Jun 12, 2016
Merged

Conversation

elithrar
Copy link
Contributor

  • As per No 'Max-Age' #38 - we now support a MaxAge of 0 to allow for session cookie support.
    gorilla/csrf's CSRF tokens are designed to be reasonably long lived (12
    hours), but there are some applications that require this.
  • Note that setting a MaxAge < 0 will default to 12 hours, so you must
    explcitly set csrf.MaxAge(0) to invoke this behaviour.

- As per #38 - we now support a MaxAge of 0 to allow for session cookie support.
  gorilla/csrf's CSRF tokens are designed to be reasonably long lived (12
  hours), but there are some applications that require this.
- Note that setting a MaxAge < 0 will default to 12 hours, so you must
  explcitly set csrf.MaxAge(0) to invoke this behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant