PHPSESSID vs Yii::$app->session->id

I thought they are the same thing ,but they are not.

what are the difference? and why to session id?