public function getSessionIdFromCookie()
	{
		// get session id key name
		$client = 'site';
		if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'])
		{
			$referrer = $_SERVER['HTTP_REFERER'];
			if (\Hubzero\Utility\Uri::isInternal($referrer))
			{
				if (substr($referrer, 0, strlen('http')) == 'http')
				{
					$referrer = parse_url($referrer, PHP_URL_PATH);
				}
				$referrer = trim($referrer, '/');
				$parts = explode('/', $referrer);
				$referrer = array_shift($parts);
				if ($referrer == 'administrator')
				{
					$client = $referrer;
				}
			}
		}
		$sessionName = md5(\App::hash($client));

		// return session id stored in cookie
		return (!empty($_COOKIE[$sessionName])) ? $_COOKIE[$sessionName] : null;
	}
public function getSessionIdFromCookie()
	{
		// get session id key name
		$client = 'site';
		if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'])
		{
			$referrer = $_SERVER['HTTP_REFERER'];
			if (\Hubzero\Utility\Uri::isInternal($referrer))
			{
				if (substr($referrer, 0, strlen('http')) == 'http')
				{
					$referrer = parse_url($referrer, PHP_URL_PATH);
				}
				$referrer = trim($referrer, '/');
				$parts = explode('/', $referrer);
				$referrer = array_shift($parts);
				if ($referrer == 'administrator')
				{
					$client = $referrer;
				}
			}
		}
		$sessionName = md5(\App::hash($client));

		// return session id stored in cookie
		return (!empty($_COOKIE[$sessionName])) ? $_COOKIE[$sessionName] : null;
	}
public function getSessionIdFromCookie ( ) { // get session id key name $ client = 'site' ; if ( isset ( $ _SERVER [ 'HTTP_REFERER' ] ) && $ _SERVER [ 'HTTP_REFERER' ] ) { $ referrer = $ _SERVER [ 'HTTP_REFERER' ] ; if ( \ Hubzero \ Utility \ Uri :: isInternal ( $ referrer ) ) { if ( substr ( $ referrer , 0 , strlen ( 'http' ) ) == 'http' ) { $ referrer = parse_url ( $ referrer , PHP_URL_PATH ) ; } $ referrer = trim ( $ referrer , '/' ) ; $ parts = explode ( '/' , $ referrer ) ; $ referrer = array_shift ( $ parts ) ; if ( $ referrer == 'administrator' ) { $ client = $ referrer ; } } } $ sessionName = md5 ( \ App :: hash ( $ client ) ) ; // return session id stored in cookie return ( ! empty ( $ _COOKIE [ $ sessionName ] ) ) ? $ _COOKIE [ $ sessionName ] : null ; }
Get session id from cookie

[!] This will determine if the user has an active session via browser

@return  mixed  Result of test
Get session id from cookie