After 5 minutes of idle-time i am getting kicked out of the panel and unsaved edits get lost

Hi,
after 5 minutes of idle-time i am getting kicked out of the panel and unsaved edits get lost.

Here is an image of the console output:

I´ve set the session settings according to:

I am using laravel valet server on local machine.

What am i doing wrong?

Cheers,
Peter

Is there some kind of caching for the panel.js going on?

I deleted all unused plugins.
Recompiled all custom plugins with to production.
Updated Kirby to Version 6.3.2.
Cleaned the media-folder.

Same Error!

3 hours later without doing nothing.

No Error.

How is this possible?

Sometimes this happens to me when I leave an old tab with the panel open, then go away, computer goes into standby, I come back, open a new tab and log into the panel there.

Now the old tab continues to poll the “lock” requests, probably with the new session id, but an outdated csrf token; and I guess this confuses kirby. When I close the old tab and login again, the problem disappears.

@rasteiner, thank you very very much!

This makes totally sense.
You can not imagine how I felt on friday and how i feel right now.
From now on i will close every kirby tab after every coding session, to not run into it again.

Thanks a lot!

1 Like