v1.4.0
New on this version
Added
- PHP 8.0 support
Changed
getTimedToken()
now$ttl
parameter has a default value of 600 (seconds)cleanStorage()
now$preserve
parameter has a default value of 0 (clean all)- Minor code optimization
- Minimun PHP version: 7.4
Call getTimedToken()
without parameters, return a timed token that expires in 10 minutes.
Call cleanStorage()
without parameters, delete all tokens in session storage, it doesn't preserve any token.
Changelog File
For more information read the full Changelog until now.
More info about 1.x version
This is the last release for the 1.x branch, I am still working on the 2.x version of the "guard" to offer more types of tokens and to be more compliant with the CSRF Owasp Cheat Sheet