简体   繁体   中英

ColdFusion9 session variables randomly clear

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM