Cwebuser Get Session Id


I rode documentation how get session id from CHttpSession:

But i don’t have any idea, how get sessioid from currently user logged. Anyone can me help me?

Maybe the blog tutorial can help?

or follow this for a more detailed explanation


You know what, ORey is probably right lol. I was thinking of something else, sorry about that.

You could also try this and see if it works:


echo session_id();

Ehh… I guessed it’s simple, but i don’t think is as simple as this :D Thank you !!!

Yii IS php, so you can use simple solutions sometimes :)