Hello guys!
I love Yii more and more every day, but some things are confusing as hell
I need a simple logic - log user in, and make sure he’s logged out when browser is closed. So, naturally, I code:
$identity=new UserIdentity($model->email,$password);
if($identity->authenticate()) {
Yii::app()->user->login($identity);
}
User is being logged-in successfully, but he still remains logged-in, even after browser\whole machine\server is restarted (i think restarting server isn’t really something that would affect all this, but i tried it anyway, just in case there’s something wrong with session garbage collector or whatever is happening “under the hood”).
Firebug shows I only have “PHPSESSID” cookie that “expires” on session end - but it’s not really expiring.
So, I’m confused and have no idea whether it’s something I missed or Yii is missing,
I would appreciate any help very much! Tried search, found some cookie-related topics but none helped.
UPDATE
It appears such an unwanted behavior comes with firefox. Chrome works OK and user session is terminated on browser window close.
Thanks for your attention!