I am facing an issue while going ahead with a session expiry on a jsp page containing multiple frames and it would be great if I could get any help on this. The details are as below
1. A.jsp has 3 frames f1(header),f2(left pane) and f3(dynamic content frame).
2. f1 and f2 consist of 2 static jsp pages B.jsp and C.jsp
3. f2 consists of URLs that point to individual jsp pages with target as f3.
4. When session has expired or cookies have been deleted, on clicking on any link within f2 should logout and proceed to the login page.
5. However, instead of the entire page proceeding to the login page, only f3 shows the login page. I understand this is because the URLs within f2 have the target set to f3.
I understand frames are not a good thing to use but then due to certain constraints I have to stick to frames.
I searched a lot over the internet but somehow didnt find a solution that could help.
You can use document.href.location to point to the page of your choice . The whole page will be loaded
Programming is about thinking, NOT coding
Joined: Sep 11, 2012
Thanks RatiKant, but unfortunately I have to keep the frames. Thanks Vishal for the suggestion, it did help. The problem now is that I dont even want an intermediate page, just a message to the user, like a pop-up and then log him out. Any suggestions on best practices on this one?