We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The fix is to put the setToken in echoInputField(). And not in the __construct.
public function echoInputField() { $this->setToken(); $token = $this->getToken(); echo '<input type="hidden" name="'.$this->namespace.'" value="'.$token.'">'; }
The text was updated successfully, but these errors were encountered:
The setToken() should be:
private function setToken() { $token = md5(uniqid(rand(), TRUE)); $_SESSION[$this->namespace] = $token; }
Sorry, something went wrong.
No branches or pull requests
The fix is to put the setToken in echoInputField().
And not in the __construct.
The text was updated successfully, but these errors were encountered: