Welcome Guest, Not a member yet? Register   Sign In

I have a library and within its function it has a redirect method in it. Like so:

if($logged_out && $this->logged_in()){
        if(! $logged_out && ! $this->logged_in()){
            $this->CI->session->set_userdata('redirected_from', $this->CI->uri->uri_string());

For some reason it is redirecting me to
http://localhost/index.php/admin/login instead of

my config file base_url is http://localhost/iip/

Any thoughs

Figured the problem out.

On my login form the form action was coming up incomplete. It didn't have the entire URL for my site and controller.

All works now!


Theme © iAndrew 2016 - Forum software by © MyBB