Documentation

Login

Allows developers to change the way logins and logouts are handled.

Table of Contents

checkLogin()  : bool
Process the login form
logout()  : void
Handle a logout

Methods

checkLogin()

Process the login form

public checkLogin(Context $context) : bool

Different kinds of logins might be required. This is the default that uses the local database table.

Parameters
$context : Context
Tags
used-by

\Framework\Pages\UserLogin

Return values
bool

logout()

Handle a logout

public logout(Context $context) : void

Clear all the session material if any and then divert to the /login page

Code taken directly from the PHP session_destroy manual page

Parameters
$context : Context

The context object for the site

Tags
link
http://php.net/manual/en/function.session-destroy.php
used-by

\Framework\Pages\UserLogin

psalm-suppress

PossiblyUnusedMethod

Return values
void

Search results