title: Catch session expiration in Flask
body: <p>In Flask I'm using app.permanent_session_lifetime to force a session timeout. Is there a way to receive a callback before the session expires so I can perform cleanup? Looking through the documentation I don't see a corresponding Signal. </p>