TwistPHP Documentation

Cookie

File path: dist/twist/Core/Utilities/Cookie.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

Type: Utility

Cookie — Easy session management allowing the use of a user and site array of data. All stored using the PHP session. Also extends the View utility to allow the use of session vars in templates.

Example Usage

<?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);

Method List

Method Access Returns
existspublicvoid
getpublicvoid
setpublicvoid
deletepublicvoid