App::setSession

Usage

void App::setSession(AuthSession $session)

Description

Set the authenticated session object for the request.

Parameters

Parameter Required Type Description
$session Yes AuthSession Must be an instance of the [AuthSession](https://github.com/apexpl/armor/blob/master/docs/auth_session.md) class.

Examples

Set Auth Session


$session = new AuthSession() // Generate new AutrhSession $app->setSession($session);

See Also