Cwebuser Get Session Id

Hi

I rode documentation how get session id from CHttpSession:

http://www.yiiframework.com/doc/api/1.1/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?

http://www.yiiframework.com/doc/blog/1.1/en/prototype.auth

or follow this for a more detailed explanation

http://www.yiiframework.com/wiki/6/how-to-add-more-information-to-yii-app-user/

EDIT:

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:


Yii::app()->getSession()->getSessionId()


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 :)