Yii Session Problem

when login process happens yii inserting two rows in database with different session ids and same expire time.Dont know where the second session id is coming from.Normal login page has both registration form and login form which refer to two different models - user and login model.Is this what is causing the problem with taking two models in single form.

Please help me troubleshoot the problem