BX.setCookie
result_type BX.setCookie( name, value, array options );
Sets up a cookie.
Function parameters
Parameter | Description |
---|---|
name | Name |
value | Value (string) |
options | Keys
|
Examples of use
Setting up a cookie for 24 hours:
BX.setCookie('test', '123456', {expires: 86400});
© «Bitrix24», 2001-2024