4 Replies Latest reply on Jul 19, 2006 3:28 PM by Newsgroup_User

    Session Var

    Level 7
      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.
        • 1. Re: Session Var
          MikerRoo Level 1
          Do you have ADDTOKEN="Yes" in your cflocation statement?
          • 2. Re: Session Var
            Stressed_Simon Level 1
            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"'>
            • 3. Session Var
              BKBK Adobe Community Professional & MVP
              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.

              • 4. Re: Session Var
                Level 7
                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.