After login redirect to different page


I am newly using Yii. My question is, after login I want to redirect to test page (test.php). Where I need to change?

By default it goes to home page(index.php).

Please help me.




after validation use redirect method:


You can change the default return url by changing the CWebUser’s returnUrl field.

what need to be done for redirecting a user to a different page other than default page after logging in??

Just change the line:


in the site controller action login