public function closeSession()
    {
        if (isset(\Yii::$app) && \Yii::$app->has('session', true)) {
            \Yii::$app->session->close();
        }
    }
public function closeSession()
    {
        if (isset(\Yii::$app) && \Yii::$app->has('session', true)) {
            \Yii::$app->session->close();
        }
    }
public function closeSession ( ) { if ( isset ( \ Yii :: $ app ) && \ Yii :: $ app -> has ( 'session' , true ) ) { \ Yii :: $ app -> session -> close ( ) ; } }
This functions closes the session of the application, if the application exists and has a session.
@internal
This functions closes the session of the application if the application exists and has a session .