This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Redirecting to Login page on session timeout!!

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to redirect an application to its login page on session timeout. The main page is divided into 3 frames, top ,left, and right.
The right frame contains the form that is filled by the user, and which is submitted to a servlet A.

At this point in servlet A, i am checking whether the session is valid, if not , i redirect to the Login page.
The problem is , the Login page is loading in the right frame and not in the complete window.

Any pointers to how it can be resolved is greatly appreciated.

Also, is it possible for automatically redirecting the application to the Login page without any programatic checks..ie is it possible to associate a session timeout with a particular page ?

Regards,
Harsha
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't do this using server side scripting. Have to call the below function in the frameset onload method

function clearframe()
{
if(window.parent != window.self)
{
window.parent.location.href=window.location.href;
}
}
 
This one time, at bandcamp, I had relations with a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic