0 Replies Latest reply on Apr 8, 2015 12:02 PM by WolfShade

    CFServer10 / Internet Explorer 10 - A session variable doesn't exist (as per usual, works fine in FireFox)

    WolfShade Level 4

      Hello, everyone,

       

      I'm running this project under CF10 (Windows7 Pro), and I'm getting a weird session issue in regards to Internet Explorer 10.

       

      I have a page with a form that is using CFIMAGE for its CAPTCHA ability.  Before the form page loads, I have CF code that is creating a string of random numbers/letters/characters (I found out to NOT allow '#' as one of the characters) to use in the CAPTCHA image.  This is also being hashed and saved to a session variable so that upon submit the CFC can hash() the user input and compare the values.

      <cfscript>

          stringLengthCap = 6;

          stringListCap = "2,3,4,5,6,7,8,9,a,b,d,e,f,g,h,j,n,q,r,t,y,A,B,C,D,E,F,G,H,K,L,M,N,P,Q,R,S,T,U,V,W,X,Y,Z, @,%,&,?";

          stringNameCap = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,K,L,M,N,P,Q,R,S,T,U, V,W,X,Y,Z";

          rndStrCap = "";

          rndInptCap = "";

          rndClassCap = "";

          rndSpotCap = val(RandRange(3,listlen(stringNameCap)));

      </cfscript>

      <cfloop from="1" to="#stringLengthCap#" index="idx">

          <cfset rndNum = RandRange(1,listLen(stringListCap))>

          <cfset rndStrCap &= listGetAt(stringListCap,rndNum)>

      </cfloop>

      <cfloop from="1" to="#rndSpotCap#" index="idx">

          <cfset rndNum = RandRange(5,listLen(stringNameCap))>

          <cfset rndInptCap &= listGetAt(stringNameCap,rndNum)>

      </cfloop>

      <cfloop from="1" to="#rndSpotCap+5#" index="idx">

          <cfset rndNum = RandRange(5,listLen(stringNameCap))>

          <cfset rndClassCap &= listGetAt(stringNameCap,rndNum)>

      </cfloop>

      <cfset session.rndcaptcha = hash(trim(rndStrCap))>

      <cfset session.rndName = trim(rndInptCap)>

       

      Works fine in FireFox.  Other session vars in IE are present.  It's just this one (session.rndcaptcha) that doesn't exist.

       

      I can't see what is preventing this in just IE10.  Thoughts?

       

      V/r,

       

      ^_^