start session code