Dealing With Reverse Proxy

Hi to all,

my site is accessible from internal network and internet. For the internet access, this site is behind a reverse proxy.

Variables such as Yii::app()->user… from the access works well for both cases in index.php, but when i’m accessiing other page, there is no value in the case of internet.

Thanks for helping me.

To be more specific, my variable is set with the UserIdentity class, and when i’m trying to change the value of an element later by




Yii::app()->user->setState(...



then it doesn’t work in the internet case.

Edit: it works, but doesn’t persists.

Solved.

It was not an Yii issue, but configuration of reverse proxy. In fact, the writed cookie was not this one i read because of the proxy.