Skip to main content
Inspiring
January 22, 2007
Answered

Session is lost. Happens to 1 user, only. (MX 6.1)

  • January 22, 2007
  • 5 replies
  • 829 views
We have many external users that use our Coldfusion MX 6.1 application daily, but to date there is only one user that appears to lose their session variables almost every time that they click on a button that opens a new window and displays a document in PDF format.

This user has Windows XP with Service Pack 2 and is using Internet Explorer (I think version 6). Her Internet Options for Security and Privacy match up with my settings (default values).

The block of code below is where I think her session variables are lost: (She never sees the PDF come up. Instead she is bounced out of our application and back to our login page with a message that says that her session has time out)

<body>
<cfheader name="content-disposition" value="inline;
filename=#GetFileFromPath(SESSION.PDFFileName)#"> <!--- Use cfheader so that file name shows correctly if user doesn't have Acrobat Reader --->
<!--- The cfcontent statement does the actual display of the PDF file --->
<cfcontent type="application/pdf" file="#SESSION.PDFFileName#" DELETEFILE="No"> <!--- Don't use DELETEFILE="Yes". For some agents it deletes files too quickly. --->
</body>

Please let me know if you have any suggestions as to how I can fix this problem.
Thank you!
This topic has been closed for replies.
Correct answer drybagel
Thank you, all, for your advice. Upon talking to the customer again, I found out that she goes to our website via a Favorites menu that she has set up in Microsoft Outlook. When I tried using Microsoft Outlook and adding a Favorites menu and then going to our website, I was able to get the same problem that this customer was getting!

5 replies

drybagelAuthorCorrect answer
Inspiring
May 22, 2007
Thank you, all, for your advice. Upon talking to the customer again, I found out that she goes to our website via a Favorites menu that she has set up in Microsoft Outlook. When I tried using Microsoft Outlook and adding a Favorites menu and then going to our website, I was able to get the same problem that this customer was getting!
BKBK
Community Expert
Community Expert
January 24, 2007
Please let me know if you have any suggestions as to how I can fix this problem.

I would design the following test page and have her open it and click on the link.

mrsRobinson1.cfm
================
<h2>test page one</h2>
<a href="mrsRobinson2.cfm">second test page</a>
session dump<br>
<cfdump var="#session#">

mrsRobinson2.cfm
================
<h2>test page two</h2>
session dump<br>
<cfdump var="#session#">

Are the session id and token the same on both pages? Does the session structure contain the key PDFFileName?

Inspiring
January 23, 2007
What you need to do is narrow it down to either her login or her computer if she is the only one it is affecting. If other people in her office are experiencing the same problem then it is probably a firewall issue. If it is just her login or her computer that presents other problems.
Inspiring
January 23, 2007
If she goes to another computer can she bring up the page okay?
drybagelAuthor
Inspiring
January 23, 2007
When I was working through the problem with her over the phone, she did bring up the PDF successfully one time, but she was bounced back to our login page on 3 other tries. She says that this is the typical pattern, that once in a while she can get to the PDF, but the majority of times she cannot.
She is gone for the day at her office and I didn't ask her if other's at her company have tried the same workflow.
Inspiring
January 22, 2007
Have you checked to see that she has the proper version of Acrobat Reader?
drybagelAuthor
Inspiring
January 23, 2007
I had her go to a static web page and click on a link that brings up a PDF and it worked fine. So it appears to be specific to my Coldfusion module.

Thank you.