Bitrix API

Cookie extends Cookie

Table of Contents

Constants

SPREAD_DOMAIN  = 2
SPREAD_SITES  = 1

Methods

__construct()  : mixed
Cookie constructor.
getCookieDomain()  : string
Returns the domain from the sites settings to use with cookies.
getDomain()  : string|null
getOriginalName()  : string
getSpread()  : mixed
normalizeName()  : string
Normalizes a name for a cookie.
setSpread()  : mixed

Constants

SPREAD_DOMAIN

public mixed SPREAD_DOMAIN = 2

SPREAD_SITES

public mixed SPREAD_SITES = 1

Methods

__construct()

Cookie constructor.

public __construct(string $name, string|null $value[, int $expires = null ][, bool $addPrefix = true ]) : mixed
Parameters
$name : string

The cooke name

$value : string|null

The cooke value

$expires : int = null

Timestamp

$addPrefix : bool = true

Name prefix, usually BITRIX_SM_

getCookieDomain()

Returns the domain from the sites settings to use with cookies.

public static getCookieDomain() : string
Tags
throws
SqlQueryException
throws
SystemException
Return values
string

getDomain()

public getDomain() : string|null
Return values
string|null

getOriginalName()

public getOriginalName() : string
Return values
string

getSpread()

public getSpread() : mixed

normalizeName()

Normalizes a name for a cookie.

public static normalizeName(string $name) : string
Parameters
$name : string
Return values
string

setSpread()

public setSpread(mixed $spread) : mixed
Parameters
$spread : mixed

        
On this page

Search results