hasCookies
The hasCookies() method checks whether cookies are enabled in this browser.
Syntax
hasCookies()
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
Returns
Whether cookies are enabled in this browser.
Format: True: cookies are enabled. False: cookies are disabled.
Type: boolean
Examples
To check whether cookies are enabled in this browser:
_paq.push([function () {
console.log(this.hasCookies());
}]);
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
A sample of the return value:
True
Related methods
- enableCookies()
- disableCookies()
- deleteCookies()
- setCookieNamePrefix()
- setCookieDomain()
- getCookieDomain()
- setCookiePath()
- getCookiePath()
- setSecureCookie()
- setVisitorCookieTimeout()
- getConfigVisitorCookieTimeout()
- setReferralCookieTimeout()
- setSessionCookieTimeout()
- getSessionCookieTimeout()
- setVisitorIdCookie()
Updated 6 days ago