I have an application that when the user opens it, I check if it is already logged in. If so, it is redirected to HomePage, if not, it goes to LoginPage.
Where is the best place to do this verification and redirection? Currently I call LoginPage from the
root page and check there whether the user is logged in or not. The problem is that every time I open the application, the LoginPage page is displayed (it takes a while to check if the user is logged on to the server)