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

Type: System.Byte[]

The super cookies data.

Loads super cookie.
Syntax
public void LoadSuperCookie( 
   byte[] cookie
)

Parameters

cookie

Type: System.Byte[]

The super cookies data.

Example
The following example uses the LoadSuperCookie method.
// format super cookie string
string cookie = @"mc.yandex.ru:HSTS	0	17324	1528380625408,1,0
yastatic.net:HSTS	0	17324	1540044588554,1,1";
// convert super cookie string to byte array
byte[] cookieBytes = System.Text.Encoding.UTF8.GetBytes(cookie);
// load cookie
instance.LoadSuperCookie(cookieBytes);
// format super cookie string
$cookie = @"mc.yandex.ru:HSTS	0	17324	1528380625408,1,0
yastatic.net:HSTS	0	17324	1540044588554,1,1";
// convert super cookie string to byte array
$cookieBytes = System\Text\Encoding\UTF8::GetBytes($cookie);
// load cookie
$instance->LoadSuperCookie($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
SaveSuperCookie Method
SetSuperCookie Method
GetSuperCookie Method