Yii And Moodle Single Sign On

I have integrate moodle with yii application without enter user id/password .

log in directly if login yii application else not login when logout any application at time both application session/cookies is destroy.

please give to solution this problem

HI Hiren,

Could you please suggest me how to integrate moodle in YII application.