TwistPHP Documentation

createCookie

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

createCookieCreate a remember me cookie session

Parameters

Name Type Description
$intUserIDintegern/a

Return Values

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

Example

<?php
//Set the variables for the example
$intUserID 124;

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