This module provides the csrf utilities used by Formular.
Returns a CSRF token for the given url and stores it in the session.
Parameters: |
|
---|
Removes every (url_hash, csrf_token) tuple from the session for the given url. If no tuple is found this function does nothing.
This function should be used to remove the csrf token from the session after the form was validated, to ensure that every token can be only used once.
Parameters: |
|
---|