Skip to content

keys do not match #5

@gmilby

Description

@gmilby

when verifying a key, the pair is never returned as a match.

it was suggested that i am not using it properly, if that is the case, can you make a usage doc pls?

generateToken(); $_SESSION['csrf'] = $this_token; $_SESSION['logged_visitor'] = 1; ?> generateHiddenField(); ?> checkToken(); if($oClass->checkToken()==$this_token)echo "[status is secure]"; echo '
';
        var_dump($_POST);
        var_dump($_SESSION['csrf']);
        echo '

full SESSION Dump

'; var_dump($_SESSION); } ?>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions