ZennoLab Assemblies Documentation
GetCookie Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > Instance Class : GetCookie Method
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.

Glossary Item Box

Gets cookie.

Syntax

C# 
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.

Example

The following example uses the GetCookie method.
C#Copy Code
instance.ActiveTab.Navigate("http://google.com/");
instance.ActiveTab.WaitDownloading();
// get cookie by domain
return instance.GetCookie("google.com", true);
PHPCopy Code
$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

© 2014 All Rights Reserved.