public function Logout ($reason = FALSE)
	{
		
		// Set login status
		
		$this->loggedIn	= FALSE;
		
		// Destroy session
		
		$this->session ()->Destroy ();
		
		// Remove session data
		
		$this->_sessionData	= FALSE;
		
		// Create a new session
		
		$this->session ()->Create ();
		$this->session ()->Refresh ();
		
		// Store requested URL if there is a reason we're logging out
		// If no reason then just a logout request, so we dont want to store
		// it else we'll create a loop should they try to log back in.
		
		if ($reason !== FALSE)
		{
			$this->session ()->set ('requested_url', $_SERVER['REQUEST_URI']);
		}
		
		// Return
		
		return $reason;
		
	}
public function Logout ($reason = FALSE)
	{
		
		// Set login status
		
		$this->loggedIn	= FALSE;
		
		// Destroy session
		
		$this->session ()->Destroy ();
		
		// Remove session data
		
		$this->_sessionData	= FALSE;
		
		// Create a new session
		
		$this->session ()->Create ();
		$this->session ()->Refresh ();
		
		// Store requested URL if there is a reason we're logging out
		// If no reason then just a logout request, so we dont want to store
		// it else we'll create a loop should they try to log back in.
		
		if ($reason !== FALSE)
		{
			$this->session ()->set ('requested_url', $_SERVER['REQUEST_URI']);
		}
		
		// Return
		
		return $reason;
		
	}
public function Logout ( $ reason = FALSE ) { // Set login status $ this -> loggedIn = FALSE ; // Destroy session $ this -> session ( ) -> Destroy ( ) ; // Remove session data $ this -> _sessionData = FALSE ; // Create a new session $ this -> session ( ) -> Create ( ) ; $ this -> session ( ) -> Refresh ( ) ; // Store requested URL if there is a reason we're logging out // If no reason then just a logout request, so we dont want to store // it else we'll create a loop should they try to log back in. if ( $ reason !== FALSE ) { $ this -> session ( ) -> set ( 'requested_url' , $ _SERVER [ 'REQUEST_URI' ] ) ; } // Return return $ reason ; }
Logout the user
return string Reason
Logout the user return string Reason