setCookieName()
setCookieName(string $cookieName)
To change the cookie name that the client side properties would be set to.
When using getProperties() in a web application, the detection would
automatically use the contents of this cookie if it exists. If you want
the client side properties to be used add the DeviceAtlas client side
component (JS lib) to your web-site pages.
When the user-agent or HTTP headers are set manually to getProperties()
the client side properties (probably the value set to the cookie) can be
manually passed to this methods as the second argument, note that this
config is only used for getProperties(REQUEST-OBJECT). If you set the
cookie-name to null then the client-side properties cookie will be ignored.
Parameters
string |
$cookieName |
The cookie name which the client side properties
are set to. Set to null to turn off using client-side properties |
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275