web\User logout()

logout() public method

Logs out the current user.

This will remove authentication-related session data. If $destroySession is true, all session data will be removed.

public boolean logout ( $destroySession = true )
$destroySession boolean

Whether to destroy the whole session. Defaults to true. This parameter is ignored if $enableSession is false.

return boolean

Whether the user is logged out

doc_Yii
2016-10-30 17:17:24
Comments
Leave a Comment

Please login to continue.