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.
<?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 | Access | Returns |
---|---|---|
exists | public | void |
get | public | void |
set | public | void |
delete | public | void |