getCookiePath

The getCookiePath() method returns a path where visitor cookies (_pk_id.*) and session cookies ( _pk_ses.*) are stored.

Syntax

getCookiePath()
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>

Returns

The path where visitor and session cookies (_pk_id.* and _pk_ses.*) are stored.

Format: Example: /blog/.

Type: string

Examples

To get the path where visitor and session cookies are stored:

_paq.push([setCookiePath()]);
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>
getCookiePath(): Promise<string>

Related methods