This post has NOT been accepted by the mailing list yet.
I know that it was mentioned in this forum, but Igor's idea with JS does not work. The problemis that when session expires while modal window is opened, the PageExpiredErrorPage shows inside modal window. Clicking to home page link redirects to login page, but still inside the modal window. I customized PageExpiredErrorPage by setting setPageExpiredErrorpage(new SignInPage()), so SignInPage apears instead of PageExpiredErrorPage, but still inside modal window. How to prevent this bahaviour? I found solution with some kind of JS closing modal window when session expired, but it does not redirects to SignInPage