TwistPHP Documentation

login

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

loginLog the user in and generate an active session (Stores session data into the browser)

Parameters

Name Type Description
$strEmailstringn/a
$strPasswordstringn/a
[$blRememberMeCookie = false]booleann/a

Return Values

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

Example

<?php
//Set the variables for the example
$strEmail 'foo';
$strPassword 'foo';
$blRememberMeCookie false;

//Call the function login with the example vars
\Twist\Core\Models\User\Auth::login($strEmail$strPassword$blRememberMeCookie);