Sharing Session In Yii

Hi all,

I am beginner in yii. I have two applications line application A, and Application B, Both applications are different databases. I would like to combine these applications like when login application A auto-login in Application B and logout any application totally logout Both session. If any one know about these criteria please suggest me in detail. sorry for my english.

Advance Thanks.