setRoleFromSession

Sets the role from the session.

package
static if(isWeb)
bool
setRoleFromSession
(
HttpClient client
,)

Parameters

client HttpClient

The client.

defaultIsInvalid bool

Boolean determining whether the default role is an invalid role.

Return Value

Type: bool

Returns true if the role was set from the session.

Meta