Home Reference Source Repository
import {Cookie} from 'ingresse-sdk/src/helper/cookie.js'
public class | source

Cookie

Cookie

Constructor Summary

Public Constructor
public

constructor(companyId: *)

Member Summary

Public Members
public

Method Summary

Public Methods
public

createCookie(cname: string, cvalue: string | number, days: number): String

Create the cookie.

public

Delete the cookie.

public

Check/Return the cookie if it's exists.

Public Constructors

public constructor(companyId: *) source

Params:

NameTypeAttributeDescription
companyId *

Public Members

public companyId: * source

Public Methods

public createCookie(cname: string, cvalue: string | number, days: number): String source

Create the cookie.

Params:

NameTypeAttributeDescription
cname string

The cookie name.

cvalue string | number

The cookie value.

days number

The expiration days.

Return:

String

public deleteCookie(cname: string) source

Delete the cookie.

Params:

NameTypeAttributeDescription
cname string

The cookie name.

public getCookie(cname: string): String source

Check/Return the cookie if it's exists.

Params:

NameTypeAttributeDescription
cname string

The cookie name.

Return:

String