Auto-Register And Auto-Login?

Using the YII Framework,

I have an existing back-end. I want to auto-login the user and register a user.

How to create code to auto-register and auto-login a user?

You can visit this link:

http://www.yiiframework.com/forum/index.php/topic/9525-auto-login-after-registration-fake-login/page__p__61699#entry61699

It helped me.

:D