ColdFusion9 session variables randomly clear

251 Views Asked by At

I have an application that keeps giving me Variable undefined in session. This happens randomly. I can click on a page and get the error, log out and then back in and click on the same page and don't get the error, click three more pages fine, then click another page and get the error again. I have not found any rhyme or reason to it. In my application.cfm I have:

<cfset SessionTimeout = CreateTimeSpan(0, 2, 0, 0)>
<cfset LoginTimeout = 7200>
<cfapplication name="redbook"
           clientmanagement="Yes"
           sessionmanagement="Yes"
           setclientcookies="Yes"
           clientstorage="cookie"
           sessionTimeout = #SessionTimeout#>

In looking at a proxy debugger, I can see all my session variables declared on the page before it errors. On the next page (when it errors) the only session variables I see are:

cfid, cftoken, sessionid, urltoken

Has anyone else experienced this? I am running Coldfusion Version 9.0.2.282541 on Windows Server 2008 R2. Please let me know if you need any more details.

1

There are 1 best solutions below

0
On

The issue was the load balancing. As it went from page to page, it sometimes switched servers, clearing out the session variables.