Handle sessions.