# \[LOCALSTORAGE\] How open page only once if user login?

**URL:** <https://forum.ionicframework.com/t/localstorage-how-open-page-only-once-if-user-login/101221>\
**Category:** ionic-v3\
**Created:** [August 8, 2017, 4:04am UTC](https://forum.ionicframework.com/t/localstorage-how-open-page-only-once-if-user-login/101221 "2017-08-08T04:04:09Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [August 8, 2017, 5:04am UTC](https://forum.ionicframework.com/t/localstorage-how-open-page-only-once-if-user-login/101221/11 "2017-08-08T05:04:50Z")

</div>

`!= false` is not a very common or reliable idiom, because JavaScript has many “falsy” values that you generally want to treat identically. I posted [something](https://forum.ionicframework.com/t/provider-server-provide-the-data-or-contain-the-data/101131/6?u=rapropos) recently about the danger inherent in exposing public properties of service providers; is it possible that it is relevant to your situation?

---

_[View the full topic](https://forum.ionicframework.com/t/localstorage-how-open-page-only-once-if-user-login/101221)._
