There is a project that is implemented on Yii2 and CS-CART. Yii2 on the front end, CS-CART on the back end. When logout occurs, an error occurs, how how if a session is logged to the cs-cart session is not destroyed and, accordingly, the user is considered logged in.

How to log out user?

    1 answer 1

    In order to log in to Yii2, you must either call

    Yii::$app->user->logout(); 

    Or manually clear the PHPSESSID .