createSession() implemented