ZennoLab Assemblies Documentation
GetCookie Method
Example 

Type: System.String

The domain of cookie. The default value is empty string.

Type: System.Boolean

The domain of cookie. The default value is false.

Gets cookie.
Syntax
public string GetCookie( 
   string domain,
   bool isCookieFormat
)

Parameters

domain

Type: System.String

The domain of cookie. The default value is empty string.

isCookieFormat

Type: System.Boolean

The domain of cookie. The default value is false.

Return Value

Type: System.String

The cookies in the string format.

Example
The following example uses the GetCookie method.
instance.ActiveTab.Navigate("http://google.com/");
instance.ActiveTab.WaitDownloading();
// get cookie by domain
return instance.GetCookie("google.com", true);
$instance->ActiveTab->Navigate("http://google.com/");
$instance->ActiveTab->WaitDownloading();
// get cookie by domain
return $instance->GetCookie("google.com", true);
Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

Instance Class
Instance Members
ClearCookie Method
LoadCookie Method
SaveCookie Method

Send Feedback