TwistPHP Documentation

createDeviceID

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

createDeviceIDCreate a device ID, this for now is unique to a browser / computer, multiple users can use one device key

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 createDeviceID with the example vars
$resSessionHandler = new \Twist\Core\Models\User\SessionHandler();
$resSessionHandler -> createDeviceID($intUserID);