Grav-plugin-admin: Invalid scurity token

Created on 11 Mar 2018  路  10Comments  路  Source: getgrav/grav-plugin-admin

_Invalid security token_ error when i try to save edited page. And loss of all changes.

bug fixed in repo

Most helpful comment

We're investigating a Session based issue that is likely causing this. Hopefully have an update on this soon.

All 10 comments

Did you happen to do like me? I used my browser's back button to return to the form that I edited before. Thus causing the form to use an invalid form token..
Grav should be able to handle this though since this is veeery common. At least save the edited text in the editor using localstorage or something else..

karlingen, in my case i had lost authorization and had to enter credentials again. after successful login i had previous version of my page.

Might be an issue with PHP's session expiry

We're investigating a Session based issue that is likely causing this. Hopefully have an update on this soon.

Nothing has changed for me... After 30 min and less session has expired. Sometimes with _Invalid security token_, sometimes without.
Grav v1.4.1 - Admin v1.7.1.
_Cache lifetime_ in configuration - 604800 sec
_Session timeout_ in admin - 7200sec

Then i can't replicate at this time, and i'm going to need a zip from your with a test site that I can use to replicate it. thanks!

temp-20180322125649.zip

login:password: admin:Admin2018

Session expires after less then 1 hour of inactivity

I will test this. Does it matter what page you are sitting on? The page edit view perhaps?

It does not matter. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danzinger picture danzinger  路  5Comments

illycz picture illycz  路  5Comments

dimayakovlev picture dimayakovlev  路  5Comments

fourroses666 picture fourroses666  路  4Comments

darkroastcreative picture darkroastcreative  路  4Comments