• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help in this PHP function

viniciusturko

New Member
Joined
Jun 23, 2009
Messages
94
Reaction score
2
Location
Brasil
Hello, I have this 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:
Back
Top