default controller for session expired

Hi,

like in subject.

More details?

So, my default controlle for application is Site (default settings). Site controller is responsible for manage main site. I have another controller to manage admin panel - AminController. In AdminController I have action login, which is responsible for the authorization. When authorization is corect Im redirected to admin/index. But if I does not do anything for 30 minutes my session is expired and Im redirected to site/login. (action login is in AdminController not in SiteController).

In your app config, set 'loginUrl' of 'user' component to be:



return array(


    'components'=>array(


          'user'=>array(


                'loginUrl'=>array('admin/login'),


          ),


    ),


);