Replaced cookies for local storage.