Graceful Session Expiry

on February 8th, 2019

It's happened to everyone. You're working hard, typing out your blog post. You get a hankering for a sandwich so you get up and head to the kitchen. You come back to finish your post, hit save, and oh no! Your session expired while you were gone and now you're face to face with the login screen and wondering what happened to your unsaved content.

Honestly, that's pretty annoying. We can do better. In Statamic v3, we did.

Session Expiry in Action

Just enter your password and you're free to go make another 2 hour sandwich!

The countdown will appear once your session has 1 minute left. Extend your session by clicking the link in the warning, by making a request, saving something, or navigating to another page. It'll even know if you've extended your session using a different tab.

And it should go without saying, but you can set your session length to be as long as you'd like. You're not limited to 2 hour windows. Or only one sandwich.

Jason Varga
Jason Varga, Lead Deveoper @ Statamic
Lead Developer

Copyright 2020 Statamic