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

Trending Articles