Handle all session lifecycles through Flask