Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Expired issues

Status
Not open for further replies.

mhamilton3

Programmer
Oct 31, 2001
129
Hello,
I have a completely dynamic site (written in Perl) that works perfectly on it's own. I am able to maneuver forward and back without any complains from the browser (using the back and forward button). The problem comes when a third party puts my site into a frame. When doing this they get a page expired when using the back button. All pages are submitted with form posts and I'm guessing this page expired has something to do with that. Are you aware of any HTML meta tag or setting I can make to cause this problem not to happen. I have a session that times out in a predetermined amount of time so I am not worried about the site hanging around. Thanks.
 
You can put JavaScript in your pages to ensure that you're not in any frameset:

Code:
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
	if (top.location != document.location) top.location = document.location;
</SCRIPT>

Hope this helps!

Dan
 
thanks, but I desire to be in the frameset (we are working with this client and the frameset is branding. Any other suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top