Skip to content

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.

2 participants