TwistPHP Documentation

delete

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

deleteRemove a single session item or clear the whole session by leaving the key field null

Parameters

Name Type Description
[$strKey = null]stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strKey null;

//Call the function delete with the example vars
Twist::Session() -> delete($strKey);