ZennoLab Assemblies Documentation
LoadCookie(Byte[]) Method
Example 
ZennoLab.CommandCenter Namespace > Instance Class > LoadCookie Method : LoadCookie(Byte[]) Method

Type: System.Byte[]

The cookies data.

Loads cookie.
Syntax
public void LoadCookie( 
   byte[] cookie
)

Parameters

cookie

Type: System.Byte[]

The cookies data.

Example
The following example uses the LoadCookie method.
// format cookie string
string cookie = @".samy.pl	TRUE	/	FALSE	05/18/2033 06:33:20	__utmc	27102015	FALSE	TRUE
samy.pl	FALSE	/evercookie/	FALSE	05/18/2033 06:33:20	evercookie_png	398	FALSE	TRUE";
// convert cookie string to byte array
byte[] cookieBytes = System.Text.Encoding.UTF8.GetBytes(cookie);
// load cookie
instance.LoadCookie(cookieBytes);
// format cookie string
$cookie = @".samy.pl	TRUE	/	FALSE	05/18/2033 06:33:20	__utmc	27102015	FALSE	TRUE
samy.pl	FALSE	/evercookie/	FALSE	05/18/2033 06:33:20	evercookie_png	398	FALSE	TRUE";
// convert cookie string to byte array
$cookieBytes = System\Text\Encoding\UTF8::GetBytes($cookie);
// load cookie
$instance->LoadCookie($cookieBytes);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Instance Class
Instance Members
Overload List
ClearCookie Method
SaveCookie Method
SetCookie Method
GetCookie Method