Server-side sessions for Flask with MongoDB