cookie to local storage, server side session cache