update session script