CsrfTokenManagerInterface::refreshToken()

CsrfToken refreshToken(string $tokenId)

Generates a new token value for the given ID.

This method will generate a new token for the given token ID, independent of whether a token value previously existed or not. It can be used to enforce once-only tokens in environments with high security needs.

Parameters

string $tokenId The token ID. You may choose an arbitrary value for the ID

Return Value

CsrfToken The CSRF token
doc_Symfony
2016-10-28 06:12:42
Comments
Leave a Comment

Please login to continue.