switch RicUI cookie to sessionStorage