public static function eat($namespace)
	{
		$hash  = \App::hash(\App::get('client')->name . ':' . $namespace);

		$key = \App::hash('');
		$crypt = new \Hubzero\Encryption\Encrypter(
			new \Hubzero\Encryption\Cipher\Simple,
			new \Hubzero\Encryption\Key('simple', $key, $key)
		);

		if ($str = \App::get('request')->getString($hash, '', 'cookie'))
		{
			$sstr   = $crypt->decrypt($str);
			$cookie = @unserialize($sstr);

			return (object)$cookie;
		}

		return false;
	}
public static function eat($namespace)
	{
		$hash  = \App::hash(\App::get('client')->name . ':' . $namespace);

		$key = \App::hash('');
		$crypt = new \Hubzero\Encryption\Encrypter(
			new \Hubzero\Encryption\Cipher\Simple,
			new \Hubzero\Encryption\Key('simple', $key, $key)
		);

		if ($str = \App::get('request')->getString($hash, '', 'cookie'))
		{
			$sstr   = $crypt->decrypt($str);
			$cookie = @unserialize($sstr);

			return (object)$cookie;
		}

		return false;
	}
public static function eat ( $ namespace ) { $ hash = \ App :: hash ( \ App :: get ( 'client' ) -> name . ':' . $ namespace ) ; $ key = \ App :: hash ( '' ) ; $ crypt = new \ Hubzero \ Encryption \ Encrypter ( new \ Hubzero \ Encryption \ Cipher \ Simple , new \ Hubzero \ Encryption \ Key ( 'simple' , $ key , $ key ) ) ; if ( $ str = \ App :: get ( 'request' ) -> getString ( $ hash , '' , 'cookie' ) ) { $ sstr = $ crypt -> decrypt ( $ str ) ; $ cookie = @ unserialize ( $ sstr ) ; return ( object ) $ cookie ; } return false ; }
Retrieve a cookie

@param  (string) $namespace - make sure the cookie name is unique
@return (object) $cookie data
Retrieve a cookie