now sets both cookie and localstorage