deleteCookies

The deleteCookies() method deletes the existing visitor cookie (_pk_id.*) and session cookie ( _pk_ses.*), which are responsible for recognizing visitors and their sessions. The cookies are deleted on the next page view after this method is called.

Syntax

deleteCookies()
deleteCookies(): void
deleteCookies(): void
deleteCookies(): void
deleteCookies(): void
deleteCookies(): void
deleteCookies(): void

Examples

To delete visitor and session cookies:

_paq.push(["deleteCookies"]);
deleteCookies(): void
deleteCookies(): void
deleteCookies(): void
deleteCookies(): void
deleteCookies(): void
deleteCookies(): void

Related methods