Persist sessions in localstorage