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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.