sign out as written in the document:
Yii::app()->user->logout();
the result reported a 500 error.
ERROR: 2018-06-28 14:18:20 ip[127.0.0.1] requestId[951106107] [exception.CException] callId[0] [] CException: Session and its behaviors do not have a method or closure named "logout". in