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?
function logout()
{
$this->tank_auth->logout();
// Redirect to home page
redirect('', 'refresh');
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.