Added a new class: PHP Session CSRF Token Protection Library

Upload Files From Anywhere



The API for file uploads. Integrate Filestack in 2 lines of code.
Rofl you are getting this message as free service for being a user of the PHP Classes site to which you registered voluntarily using the email address rofldigger@getsend.xyz. If you wish to unsubscribe go to the unsubscribe page.

    Class:

    Short description:

    Validate tokens to protect against CSRF attacks

    Groups:

    HTTP, Security, PHP 7

    Supplied by:

    Mostafa Abd-El-Hamid

    Detailed description:

    This package can validate tokens to protect against CSRF attacks.

    It can generate a random token that is stored in a session variable, it is served as request header, and can be used in forms or links for subsequent verification.

    The class can also verify if a given token value matches what was stored in the token session variable.
Rofl if you are not interested in receiving any more messages like this one, go to the unsubscribe page .