As I use CJuiDialog with Iframe for all my crud action I was wondering how trigger an action when session expires. Concretely I would like to do a refresh in order to redirect automatically to login page. Indeed, when session expires, if user try to go on another page it will be redirect to login page. However if user click on crud action a dialog opens and with the ifram of the login page… Which is particularly ugly because size unfit… So my will would like to automatically refresh page when session expires, then user will see directly login page when he comes back… Moreover for security it’s safe to do this way. If page displays sensible information for example…
I think you would have to extend the CWebUser class and override the loginRequired() method where you would detect somehow if you are loading contents of an iframe. Maybe add an extra GET param.
Or in the JS code that populates the iframe detect if the loaded contents contain the login form. If so, redirect the parent window.