# Userdata still exist in homepage after clicked logout from another page

**URL:** <https://forum.ionicframework.com/t/userdata-still-exist-in-homepage-after-clicked-logout-from-another-page/216805>\
**Category:** Ionic Framework\
**Created:** [October 31, 2021, 12:18am UTC](https://forum.ionicframework.com/t/userdata-still-exist-in-homepage-after-clicked-logout-from-another-page/216805 "2021-10-31T00:18:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![limpeh78](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/limpeh78/32/139516_2.png) [@limpeh78](https://forum.ionicframework.com/u/limpeh78)\
**Post date:** [October 31, 2021, 12:18am UTC](https://forum.ionicframework.com/t/userdata-still-exist-in-homepage-after-clicked-logout-from-another-page/216805/1 "2021-10-31T00:18:37Z")

</div>

hello World,

i am trying a firebase ionic with user login and logout, when i pressed logout at a page, the home page userdata still exists, i tested using ion refresher, the userdata is gone when i manually refresh the page at chrome.

```
 <div *ngIf="user.name !=null ">
 <h5 style="padding-left: 20px;"> Welcome {{user.name}}</h5>
 </div>

<div *ngIf="user.name == null">
 <img class="slide-image1" src="{{ blue.productpicture }}" alt="">
</div>

```

the logout at .ts

logOut() {

```
firebase.auth().signOut().then(() => {
 alert("successful logout")
 this.nav.navigateRoot('home');
 }).catch(() => {
alert("Logout failed");
 });
}

```

am i missing something during logout ?

thank you for guidance

🙇‍♂️ 🙇‍♂️ 🙇‍♂️
