0
votes

I've googled, and googled and googled, and I can't find the answer to this question anywhere.

I'm using Tank Auth with CodeIgniter. I have no problems loading up the views for login, register etc.. My issue is, when I make a link for logging out, it logs out fine but then it redirects me to the login page. I want to redirect to my home controller. I can do this after login just fine, but can't for the life of me find where to redirect after logout. Anybody have any ideas?

1

1 Answers

3
votes
function logout()
{
    $this->tank_auth->logout();

    // Redirect to home page
    redirect('', 'refresh');
}