Flask user session management.