Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

When set stateFile in CStatePersister, renews the CSRF_TOKEN #1938

Open
nacesprin opened this Issue · 1 comment

2 participants

@nacesprin

Version Yii 1.1.13:

When using CStatePersister:

$sp = Yii::app()->getStatePersister();
$sp->stateFile='/home/path/to/file.bin'
$sp->save($something); //<-- At this moment, a new CSRF_TOKEN is generated.

Then, if next the code a view is rendered with csrf_token validation, the token in the forms rendered are changed and when submit , the error 'Csrf TOken could not be verified' is thrown

@samdark
Owner

Can you show full method body so we'll understand which event follows which?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.