Welcome Guest, Not a member yet? Register   Sign In
Filter controller without authentication
#1

i , in ci 3 in a construct method or in every method of a controller except for login i do :


PHP Code:
if(!isset($_SESSION['user_id'])) {
            
            redirect
('user/login','refresh');
            die();
        


How can i do the same using filter ?
Reply


Messages In This Thread
Filter controller without authentication - by pippuccio76 - 08-25-2020, 02:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB