My website has three pages:
- /
- /login
- /dashboard
When an user goes to /, if the user is logged, it redirects to /dashboard, but when is not logged, it redirects to /login.
But I want to know what is the best thing to do when a logged user goes to /login?
Should I redirect him to /dashboard? Or should I log him out and show the /login page?