Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Coldfusion 9 session variables

Posted on 2010-11-09
4
791 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

792 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