Skip to main content
Inspiring
January 6, 2009
Question

Session variable and Iframe

  • January 6, 2009
  • 2 replies
  • 2126 views
I have an application inside an Iframe,
in the first CFM page, I set a session variable,
when I go to the next page in the Iframe, the session variable have disappeared.
It seems that session variables are not working inside an Iframe ?

Thansk for any comment.
Pierre.
This topic has been closed for replies.

2 replies

Inspiring
April 20, 2021

so... 11 years later and I got this same problem. If I run the app outside of the iframe, it works fine. I can set session vars and everything works great. I run the same app inside the iframe and it won't set session variables.

 

Anyone have an idea what's happening?

BKBK
Community Expert
Community Expert
April 20, 2021

@AvantSG , Could you please create a new thread? 11 years is a long time in software. The contributors might have moved on. ColdFusion certainly has.

 

In any case, I can already guess what causes the observed session behaviour. Session is working fine, but your application fails to maintain session when the user navigates from one page to the next inside the IFrame.

Inspiring
April 20, 2021

Possibly true... here's what I discovered last night after some trial and error. I can get it to work in firefox, just not Edge. So it is maintaining session but somehow MS Edge isn't playing ball with it.

Inspiring
January 7, 2009
What makes you think that it's not there? Did you cfdump the session scope? Did you look at the debugging info?

Is the iframe page in the correct directory path to be controlled by your application.cfc/cfm file?