File path: dist/twist/Core/Models/User/SessionHandler.model.php
Namespace: Twist\Core\Models\User
setDeviceLife
— Set the device cookie life in seconds (Default: 31536000 == 1 year)
Name | Description |
---|---|
[$intDeviceLife = 31536000] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$intDeviceLife = 31536000;
//Call the function setDeviceLife with the example vars
$resSessionHandler = new \Twist\Core\Models\User\SessionHandler();
$resSessionHandler -> setDeviceLife($intDeviceLife);