• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Session Var

LEGEND ,
Jul 15, 2006 Jul 15, 2006

Copy link to clipboard

Copied

ok, I set a session var to about 2K of text

I have an iframe which is part of a menu navigation system.
The content of that iframe is slow to get from the DB so I
cache the HTML for it into a session var.

If a user clicks a link, the iframe submits to itself, does
a few things, and then cflocation's out to the chosen page.

The next time this iframe is loaded( almost immediately) it
reads the session var and it is EMPTY!

I'm not overwriting it, not structDelete'ing it, Any time I
set it outside of this page, it's done with a check to see
if it isDefined first, and if so, does nothing.

Are there known issues with CFParam? large text session vars?

WTF?


D.
TOPICS
Advanced techniques

Views

293

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 15, 2006 Jul 15, 2006

Copy link to clipboard

Copied

Do you have ADDTOKEN="Yes" in your cflocation statement?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 16, 2006 Jul 16, 2006

Copy link to clipboard

Copied

Does it work in Firefox, but not IE?

If that is the case it is most likely a P3P issue:-
http://support.microsoft.com/default.aspx?scid=kb;en-us;323752

Try setting a P3P compact policy header for your frame, try <cfheader name="P3P" value='CP="CAO PSA OUR"'>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 16, 2006 Jul 16, 2006

Copy link to clipboard

Copied

As a test ,place <cfdump var="#session#"> next to where you display the session var. Note, in particular, whether the values of session.cfid and session.cftoken change the next time the iframe is loaded. If so, then that is probably the source of the problem. Session state was not properly maintained, and so Coldfusion started a new session in between the requests.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2006 Jul 19, 2006

Copy link to clipboard

Copied

LATEST
dnagel wrote:
> ok, I set a session var to about 2K of text
>
> I have an iframe which is part of a menu navigation system.
> The content of that iframe is slow to get from the DB so I
> cache the HTML for it into a session var.
>
> If a user clicks a link, the iframe submits to itself, does
> a few things, and then cflocation's out to the chosen page.
>
> The next time this iframe is loaded( almost immediately) it
> reads the session var and it is EMPTY!
>
> I'm not overwriting it, not structDelete'ing it, Any time I
> set it outside of this page, it's done with a check to see
> if it isDefined first, and if so, does nothing.
>
> Are there known issues with CFParam? large text session vars?
>
> WTF?
>
>
> D.
So, I pulled out Fiddler, and lo and behold I was
making a call to my page with no params at one part
of the load and then later on, calling it again
properly with the correct params. I'm checking
for an empty URL param set now and all is well...

Thanks for your time on this folks!

D.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation