TwistPHP Documentation

Cookie

File path: dist/twist/Core/Helpers/Cookie.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

Type: Class

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 helper 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