Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Yii Sessions

$
0
0
I am trying to set the session id like this when logging in:

Quote

$this->setState('role', $user->role);
$this->setState('sessionId', Yii::app()->getSessionId());


However the second row with the sessionId is not working. I've also tried to set it like CHttpSession::getSessionId() but that is not working either.

What am I missing here?

Viewing all articles
Browse latest Browse all 18717

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>