remember rooturl in a cookie