YII2 User session is not working in other controller except the login controller

Once i moved the application to live server Yii2 session is not working for other controller , but i tried to initialize a php session outside the yii folder and the php session is working in all screens , please let me know what went wrong here

I have solved this issue by creating a separate session save path in config / web.php