Add authentication check to each page that should be protected. The check tests if the user has been authenticated, and if they have not been authenticated, redirects the user to the home page. If they are authenticated, the user is allowed to be redirected to the protected page.
Add authentication check to each page that should be protected. The check tests if the user has been authenticated, and if they have not been authenticated, redirects the user to the home page. If they are authenticated, the user is allowed to be redirected to the protected page.