File path: dist/twist/Core/Utilities/Cookie.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
set
— Set a cookie. Silently does nothing if headers have already been sent.
Name | Description |
---|---|
$strName | n/a |
$mxdValue | n/a |
[$intExpiry = 0] | n/a |
[$strPath = '] | n/a |
[$strDomain = false] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strName = 'foo';
$mxdValue = 'foo-123';
$intExpiry = 0;
$strPath = ';
$strDomain = false;
//Call the function set with the example vars
Twist::Cookie() -> set($strName, $mxdValue, $intExpiry, $strPath, $strDomain);