Page Refresh Navigating back to login

Hi, I had an issue with my Ionic app.I have set my rootPage to login in app component,whenever I refresh my app it is navigating back to login Page.Can any one suggest what am i missing?