viniciusturko
New Member
Hello, I have this function :
This function makes an account logout, and, how you can see, when it happens it redirects you to : "login/1". The full link after redirecting is :
My question is : How can I make this function redirects me to :
I want it to redirect to the first page of my site, can anybody help me?
Thank you.
Obs.: This is a Modern AAC function.
Code:
/* Function to logout from account. */
function logout() {
$ide = new IDE;
$_SESSION['logged'] = '';
$_SESSION['account_id'] = '';
$_SESSION['name'] = '';
$_SESSION['admin'] = 0;
$_SESSION['forward'] = "";
$ide->redirect('login/1');
}
This function makes an account logout, and, how you can see, when it happens it redirects you to : "login/1". The full link after redirecting is :
Code:
http://localhost/terceiroem/index.php/account/login/1
My question is : How can I make this function redirects me to :
Code:
http://localhost
I want it to redirect to the first page of my site, can anybody help me?
Thank you.
Obs.: This is a Modern AAC function.
Last edited: