Access to the login page even when the user is logged in. May 19, 2019, 06:03:28 PM When the user is logged in and type in address bar: "my_site / index /" the user return to the login page again. I believe that code need to verify the state of login, and in case of user is logged in, the login page performs a automatic redirection to the home page. Quote Selected
Re: Access to the login page even when the user is logged in. Reply #1 – May 19, 2019, 07:03:31 PM Quote from: Welisson – May 19, 2019, 06:03:28 PMWhen the user is logged in and type in address bar: "my_site / index /" the user return to the login page again. I believe that code need to verify the state of login, and in case of user is logged in, the login page performs a automatic redirection to the home page.Solution: Open the file "\app\views\ partials\index\index.php and add the following code:Code: [Select]<?php if(user_login_status() == true ) { redirect_to_page("home"); } ?> Quote Selected
Re: Access to the login page even when the user is logged in. Reply #2 – May 20, 2019, 10:53:16 AM @Welisson thanks for the info, it would be worked on. Quote Selected