replaces localstorage with sessionstorage in sesssions