I have a controller in which i use beforeAction where i do redirection to home page using $this->redirect(array(’/site/index’)), if session is expired. That is okay.
Thank you for your reply. However my ajax request function is in the same controller so that i can use the js window.location.href = ‘url’ in the beforeAction, because the above link finally says about that. Thank u again for your reply