Introduced server sessions

Introduced server sessions.