Documentation

Core_Cookie
in package

Cookie

Tags
subpackage

Core

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

Methods

chromiumBased()  : bool
Determine if a browser is Chrome (or Chromium) based.
incompatibleChromiumBasedVersion()  : bool
Determine if a user agent matches a particular version of Chromium
incompatibleUCBrowser()  : bool
Determine if a user agent matches a particular version of UCBrowser
isSameSiteIncompatible()  : bool
SameSite=None: Known Incompatible Clients
macOsXVersionCompare()  : bool
Determine if a user agent matches a particular version of Mac OS X
safari()  : bool
Determine if a user agent matches a Safari
sendSameSite()  : bool
SameSite=None: Known Incompatible Clients
set()  : bool
Send a cookie

Methods

chromiumBased()

Determine if a browser is Chrome (or Chromium) based.

public static chromiumBased(string $userAgent) : bool
Parameters
$userAgent : string
Return values
bool

incompatibleChromiumBasedVersion()

Determine if a user agent matches a particular version of Chromium

public static incompatibleChromiumBasedVersion(string $userAgent, mixed $min, mixed $max) : bool
Parameters
$userAgent : string
$min : mixed
$max : mixed
Return values
bool

incompatibleUCBrowser()

Determine if a user agent matches a particular version of UCBrowser

public static incompatibleUCBrowser(string $userAgent, mixed $max) : bool
Parameters
$userAgent : string
$max : mixed
Return values
bool

isSameSiteIncompatible()

SameSite=None: Known Incompatible Clients

public static isSameSiteIncompatible(string $userAgent) : bool
Parameters
$userAgent : string
Return values
bool

macOsXVersionCompare()

Determine if a user agent matches a particular version of Mac OS X

public static macOsXVersionCompare(string $userAgent, mixed $majorVerison, mixed $minorVerison) : bool
Parameters
$userAgent : string
$majorVerison : mixed
$minorVerison : mixed
Return values
bool

safari()

Determine if a user agent matches a Safari

public static safari(string $userAgent) : bool
Parameters
$userAgent : string
Return values
bool

sendSameSite()

SameSite=None: Known Incompatible Clients

public static sendSameSite(string $samesite[, string $userAgent = NULL ]) : bool
Parameters
$samesite : string
$userAgent : string = NULL
Return values
bool

set()

Send a cookie

public static set(string $name[, string $value = '' ][, array<string|int, mixed> $options = array() ]) : bool
Parameters
$name : string

The name of the cookie.

$value : string = ''

The value of the cookie. Default ''

$options : array<string|int, mixed> = array()

array('expires' => time() + 3600, 'path' => '/', 'domain' => '', 'secure' => FALSE, 'httponly' => FALSE, 'samesite' => 'Lax')

Return values
bool

        
On this page

Search results