Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issues with session expiry in case of Multple Frames in jsp Page.

 
Jyotiprakash Sundaray
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.

Any help on this would be appreciated.

Thank you.
 
RatiKanta pal
Ranch Hand
Posts: 88
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Instaed of frames jsp Include can be helpful.
 
Vishal Shaw
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can use document.href.location to point to the page of your choice . The whole page will be loaded

Vishal
 
Jyotiprakash Sundaray
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ashwini Kashyap
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For displaying message to the user, make use of alert() in javascript.
Then submit the form to the server wherein the logout feature gets executed.

Thanks and Regards,
Ashwini Kashyap | akashyap@infocepts.com | www.infocepts.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic