Avatar of cbeverly
cbeverly
 asked on

Coldfusion 9 session variables

We have just migrated from Coldfusion 8 to Coldfusion 9 and our session variables are no longer working.  Our old server was IIS6, Windows 2003 running Coldfusion 8 and our new server is IIS7, Windows 2008 running Coldfusion 9.
No code has been changed and the session variables that were set to last 20 minutes now act like local variables that reset with every page click on the web site.
Any ideas would be helpful.
Thank you.
jQueryColdFusion LanguageMicrosoft IIS Web ServerJavaScript

Avatar of undefined
Last Comment
cbeverly

8/22/2022 - Mon
pigmentarts

do you have the session start in any request function within the application.cfc? How are you setting the sessions?

i.e. are you using 'this. scope to set your timeout?

<cfset this.sessionManagement = true />
<cfset this.sessionTimeout = createTimeSpan( 0, 0, 5, 0 ) />

and are you starting the sessions in the session start request?

also have you checked your application time out? if you have not defined this on CF9 you could be using the default or set the default to something short.

if you have not already set the application timeout in your application.cfc

<cfset this.applicationTimeout = createTimeSpan( 0, 0, 1, 0 ) />

if your still have issues please post your application.cfc code.

Thanks
ASKER CERTIFIED SOLUTION
cbeverly

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pigmentarts

I see, no worries, glad you sorted it anyhow.
cbeverly

ASKER
Discovered the answer to my probem.
Your help has saved me hundreds of hours of internet surfing.
fblack61