Login to another application based on Yii Session

What is the best way to check that I’m logged in to Yii from another application?

Read from the session variable itself?

However, Security could be an issue.