Session Variables and iFrames 
Author Message
 Session Variables and iFrames

Hey All,

 hope you can help me out here, my backs against the wall and i'm at a bit of a
 I have a .NET application with an iframe in it that calls a CF application
i've written.
 In the src param of the iframe i'm passing a user id to my CF app. The .NET
application is located on a different webserver than the coldfusion app, and i
call  the CF app via IP address in the iframe src="".

 based on the user_id i pass to the cfapp, i query a DB and then load the
results into a session based array for use in other places in the application.

 My problem is this, once i populate the session array, i cflocation to another
file in the CFapp. (basicly going from an application initialization page, to a
welcome display page). the first time the page loads, it loads properly.
However if i reload the page, or try and access anyother page in the
application, its as if the session variables i have previosly set have

 Anyone have any idea what might be going on here?
 To aid in debugging I checked out the

Wed, 09 Jul 2008 01:55:36 GMT
 Session Variables and iFrames

Forget the iframe for a moment, have you gotten it to work just calling the
pages from a browser?  As long as the <cfapplication> tag is being set for each
CF page you're calling, it should work.

 Can you provide some code?

Wed, 09 Jul 2008 02:28:51 GMT
 Session Variables and iFrames
Hey Bsterner,

 Yes i have ahd no problems calling the pages normally with a hardcoded user_id
in the query string.
 I have had a couple of interesting developements in the last couple of hours i
thought i would share.

 1. The session not being "remembered" (for lack of better terminology) only
happens in Internet explorer! WTF! Everything works fine in Firefox, Netscape 7
on PC's and Macs...
 2. I have a temporary work around in place now. By appending the session
urltoken to every link/form submit in my app it now remembers which session to
access. Stranger yet, if i do not pass the tokens, it actually starts a
different session on each page request. The reason is was working on that first
page load i had mentioned was becase the cflocation had the add token param set
to yes, hence the session being remebered.

 Ive worked with CF for quite some time now, and this seems to be some of the
wierdest behavior ive seen yet.
 the specs are CF7 Enterprise edition, on a win2003 server box.
 I have my cfapplication tag being set in Application.cfm with
sessionmanagement set to yes.

Wed, 09 Jul 2008 03:32:14 GMT
 Session Variables and iFrames
Hi Rowbeast,

This is an IE issue and has nothing to do with CFMX 6 0r 7. If you enable Third Party cookies in IE and pass the token, it will work all fine.


Wed, 09 Jul 2008 16:01:30 GMT
 Session Variables and iFrames
Ok, i'll have a go at that then. thanks for the info.

Thu, 10 Jul 2008 07:58:41 GMT
 [ 5 post ] 

 Relevant Pages 

1. Curious errors with session scope CFCs and IFRAMES

2. client variables vs. session variables or cookie variables

3. Session Variables & Session Cookie Error Page

4. Clearing session variables or expiring session - best practice?

5. Session Changing Another Session's Variables

6. Session Variables/Session State Problem

7. Access users session variables from the administrative session.

8. Deleting or Modifying Session Variables in another session

9. adding session variables to an existing session

10. Session variables present in memory after structDelete(session)

11. Session Variables & Request Variables HELP

Powered by phpBB® Forum Software