Skip to main content
Participant
April 25, 2008
Question

Losing a session variable!

  • April 25, 2008
  • 2 replies
  • 360 views
I have a Cold Fusion module being called from an Authorware piece. The module is called twice. The first time is when the course is started for the first time, where it sets a session variable to the current date and time and adds a record to the course table, and the second time is if the user gets a passing score on the quiz, at which time the completion time and a passed indicator is added. The first time, the URL being called is:

http://servername/courses/RecordCourse.cfm?CourseID=TestCourse&userid=smith&coursemode=new

The second time, the URL being called is:

http://servername/courses/RecordCourse.cfm?CourseID=TestCourse&userid=smith&passfail=P&coursemode=complete

Yet the second time the file is called, the session variable is not found.
But here's the kicker -- it's only on our production server. On our development server, it works like a charm. On the production server, the second time in doesn't seem to keep the session variable. Both servers are running CFMX 7 Standard Edition.

Are there any settings between the two servers that I should be looking for? And more specifically to session variables, do the two calls to the same module qualify as two sessions? Shouldn't the session variable be retained as long as the browser window is open and the timeout has not been reached (yes, session management is set on in the application.cfm).

The code is:

    This topic has been closed for replies.

    2 replies

    Inspiring
    April 25, 2008
    Do you have an APPLICATION.CFM file on each server that has the application & session initialization settings in it ?

    What are the session timeout settings on each server?

    Are both servers recording user & session variables in the same manner?
    Participant
    April 25, 2008
    This is part of a larger application (our intranet). The overall application.cfm has the following as the first line:

    <CFAPPLICATION NAME="OurIntranet" SESSIONMANAGEMENT="Yes" SESSIONTIMEOUT= #CreateTimeSpan(0, 6, 0, 0)# >

    We use session variables all over the place in the various applications on our intranet.
    Inspiring
    April 25, 2008
    Session variables can be disabled in the Administrator.