TwistPHP Documentation

setDeviceLife

File path: dist/twist/Core/Models/User/SessionHandler.model.php
Namespace: Twist\Core\Models\User
Extends:

setDeviceLifeSet the device cookie life in seconds (Default: 31536000 == 1 year)

Parameters

Name Type Description
[$intDeviceLife = 31536000]integern/a

Return Values

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

Example

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