iFrame not working on session

Have you verified that the site you are trying to wrap in an IFrame allows wrapping in an IFrame? With the appropriate headers? Either an X-Frame-Options header (but that's now obsolete) or a Content-Security-Policy header? If not, you will not be able to use an IFrame.