Namespace

stat_browser

stat_browser

Browser detector

Methods

static get() → {CStatBrowser}

Retrieve instance of detected browser

See:

The CStatBrowser instance containing browser description

CStatBrowser

static getCookie(cookieName) → {string}

Retrieve a cookie value, by using stat_data.getCookie

Parameters:
Name Type Description
cookieName string

Name of stored cookie

The cookie value, empty string if not found

string

static setCookie(cookieName, value, exDays) → {string}

Set a cookie value, by using stat_data.setCookie

Parameters:
Name Type Description
cookieName string

Name of cookie to be stored

value string

Value of cookie to be stored

exDays number

Expiration (number of days)

The cookie value, empty string if not found

string