TwistPHP Documentation

setSessionLife

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

setSessionLifeSet the device cookie life in seconds (Default: 604800 == 7 Days)

Parameters

Name Type Description
[$intSessionLife = 604800]integern/a

Return Values

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

Example

<?php
//Set the variables for the example
$intSessionLife 604800;

//Call the function setSessionLife with the example vars
$resSessionHandler = new \Twist\Core\Models\User\SessionHandler();
$resSessionHandler -> setSessionLife($intSessionLife);