-1

How to skip login page if user is already logged in Angular Js (version 1)... when i press the back button it logged me out and drive me to the login page (from the home page only)

Abdul Moiz
  • 17
  • 1
  • 2
  • can you be more specific ? it is too general, I guess that you log out the user on initial loading of log in page, which is wrong, there are some approaches for preventing user from visiting login page if he is log in. – Rathma Dec 22 '17 at 11:45
  • Possible duplicate of [How to skip login page if user is already logged in ionic framework](https://stackoverflow.com/questions/30916966/how-to-skip-login-page-if-user-is-already-logged-in-ionic-framework) – Rathma Dec 22 '17 at 11:46
  • You should provide some code and explain how your environment work. – BT101 Dec 22 '17 at 17:58
  • not an answerable question – Charlie Ng Dec 22 '17 at 17:59

1 Answers1

0

A way to go about this (I dont know how you validate if the user is logged in I am assuming you are using a session) is to check if the user has a good Session and then use $state.go to send them back to the home page.

Aaron Rabinowitz
  • 357
  • 2
  • 18