PHP Class RainLab\User\Components\Session

Inheritance: extends Cms\Classes\ComponentBase
Show file Open project: rainlab/user-plugin Class Usage Examples

Public Methods

Method Description
componentDetails ( )
defineProperties ( )
getRedirectOptions ( )
onLogout ( ) Log out the user
onRun ( ) Executed when this component is bound to a page or layout.
user ( ) : RainLab\User\Models\User Returns the logged in user, if available, and touches the last seen timestamp.

Method Details

componentDetails() public method

public componentDetails ( )

defineProperties() public method

public defineProperties ( )

getRedirectOptions() public method

public getRedirectOptions ( )

onLogout() public method

Usage: Sign out With the optional redirect parameter: Sign out
public onLogout ( )

onRun() public method

Executed when this component is bound to a page or layout.
public onRun ( )

user() public method

Returns the logged in user, if available, and touches the last seen timestamp.
public user ( ) : RainLab\User\Models\User
return RainLab\User\Models\User