Solved

Coldfusion 9 session variables

Posted on 2010-11-09
4
788 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:cbeverly
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:pigmentarts
ID: 34100687
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
0
 

Accepted Solution

by:
cbeverly earned 0 total points
ID: 34101153
I appreciate your response. The problem turned out to be  that “Storage Mechanism for Client Sessions” was set to registry instead of Cookie on the new servers. It was changed and everything is working ok now.

Thanks again!
0
 
LVL 12

Expert Comment

by:pigmentarts
ID: 34101675
I see, no worries, glad you sorted it anyhow.
0
 

Author Closing Comment

by:cbeverly
ID: 34276694
Discovered the answer to my probem.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now