Question
Losing a session variable!
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:
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:
