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 |
Please login to continue.