#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    2
    Rep Power
    0

    Question Why does my iFrame timeout in my webpage?


    I am learning HTML and Java, and I am getting message that says, "Your session has timed out.", within my iFrame. The page that I'm trying to open in my iFrame is from a website that is not mine. The website's page that I am trying to open will automatically redirect to a page from the same website that says, "Your session has timed out."

    No login is required to access the website's page that I am trying to load in my iFrame, and I can load the website fine if I paste the exact same link into my web browsers address box. This problem only occurs when I try to load the page into an iFrame.

    For example, I am trying to load "TheWebsite Dot Com" within my iFrame, and the iFrame goes to "TheWebsite Dot Com/TimeoutError".

    What causes this and is there a way that I can load the page within an iFrame?
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,110
    Rep Power
    119
    The page probably has some variation of code in it; that does not allow anyone to put it in an iframe and this is usually to help domains prevent phishing and/or website forgery attempts. And... more then likely... no, you cannot display it in an iframe. You might be able to screen scrape it and remove this security code, if it is client side (like JavaScript, VBScript, ECMAScript, ActiveX Objects, Meta Tags, etc.); that is actually hard coded in the page, but if this is server side code (to prevent the page from being displayed within another domain, via an iframe)... your not going to be able to do this either.

IMN logo majestic logo threadwatch logo seochat tools logo