Urgent : vbulletin forum auto login using yii controller

hello guys

i am trying to use auto login functionality in vbulletin forum from my main site which is developed using yii framework

i used curl to get login but i am not getting userid other information is storing in database and all cookies and session sets properly

Urgent help needed