Ajax Logout Redirect

Hi, i have one problem with my yii-application. I created ajax site where all actions loaded in uitabs and modal windows. Problem is when user is automaticly logout for timeout. In this case if he is clicking on link modal window or uitab has loaded all site into itself. I think yyi run redirect then ajax load action and thats why ui-components loaded redirected content. So, how to resolve this problem? Can i apply javascript redirect as ever or disable logout redirect ?

check http://www.yiiframework.com/doc/api/1.1/CWebUser/#loginRequiredAjaxResponse-detail