Single Sign-On Yii And Magento

How do we maintain Single Sign-On between Yii and Magento application.

we have two application

  1. - yii application

  2. magento application

both are deployed on same server, they also have same users and passwords, how do we maintain single -sign-on between these two sub-domains of yii and Magento