In server: Implement support for sessions.