User cannot able to login in yii application from edge and chrome. If we disable cache option from developer tool, it is working fine

If we enable disable cache option user can login successfully from chrome and edge. Otherwise it always redirected to login page. In Firefox there is no issue . While debugging it is found that isGuest is true after login and yii-app()->user->username is empty. Can somebody help me to fix this issue.

dunno Yii1 but does it work in Chrome?

In chrome it works only after disabling the cache option from developer tool

So it is something that Chromium based browsers have.
I don’t know much about Yii1 to help further. Let us wait for someone more knowledgeable!