Link to home
Start Free TrialLog in
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.
Avatar of pigmentarts
pigmentarts
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Avatar of cbeverly
cbeverly

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I see, no worries, glad you sorted it anyhow.
Avatar of cbeverly
cbeverly

ASKER

Discovered the answer to my probem.