public static function SetCurrentUser(IAuthenticatable $user, $guid = "CURRENT_USER")
	{
		self::UnsetAllSessionVars(); // this calls Init so we don't have to here
		self::$user = $user;
		$_SESSION[$guid] = serialize($user);
	}
public static function SetCurrentUser(IAuthenticatable $user, $guid = "CURRENT_USER")
	{
		self::UnsetAllSessionVars(); // this calls Init so we don't have to here
		self::$user = $user;
		$_SESSION[$guid] = serialize($user);
	}
public static function SetCurrentUser ( IAuthenticatable $ user , $ guid = "CURRENT_USER" ) { self :: UnsetAllSessionVars ( ) ; // this calls Init so we don't have to here
 self :: $ user = $ user ; $ _SESSION [ $ guid ] = serialize ( $ user ) ; }
Set the given IAuthenticable object as the currently authenticated user.
UnsetAllSessionVars will be called before setting the current user

@param IAuthenticatable $user
@param mixed $guid a unique id for this session
Set the given IAuthenticable object as the currently authenticated user . UnsetAllSessionVars will be called before setting the current user