Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Coldfusion 9 session variables

Posted on 2010-11-09
4
Medium Priority
?
795 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
[X]
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
  • 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

Implementing Azure Infrastructure Exam 70-533

This course is designed to familiarize and instruct students in the content that is covered by Microsoft Exam 70-533, Implementing Microsoft Azure Solutions. It focuses on all the November 2016 objective domain topics.

Question has a verified solution.

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

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
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)
Suggested Courses

670 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