We have three Application.cfm files as follows.
root/Application.cfm
<cfapplication name="SMFWeb"
clientmanagement="no"
setclientcookies="no"
setdomaincookies="no"
applicationtimeout="#CreateTimeSpan(4,0,0,0)#">
root/training/Application.cfm
<cfapplication
name="Training"
clientmanagement="no"
sessionmanagement="yes"
setclientcookies="no"
setdomaincookies="no"
sessiontimeout="#CreateTimeSpan(0,0,15,0)#"
applicationtimeout="#CreateTimeSpan(4,0,0,0)#">
root/training/trainingmodule/Application.cfm
<cfapplication
name="Training"
clientmanagement="no"
sessionmanagement="yes"
setclientcookies="no"
setdomaincookies="no"
sessiontimeout="#CreateTimeSpan(0,0,15,0)#"
applicationtimeout="#CreateTimeSpan(4,0,0,0)#">
My self-set cookies and the session variables are set at the beginning of
the registration process through three templates in the root/training
folder. We were very carefull not to use cflocations on those pages.
I'm going to look at those cookie parameters, I hadn't paid attention to
them, because there aren't "Session", but they are also unnecessary and I'm
not sure why they are in the <cfapplication> tags. (The trouble with using
wizzards and dialogs in you IDE).
Thanks.
-----Original Message-----
From: Jeff Beer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 10:07 AM
To: CF-Talk
Subject: RE: BIZZARE Session Problem
How many application.cfm files do you have? If the name param is
different it will wipe out the existing session info and start fresh as
the user changes directories.
Also, cookies can't be set when using cflocation, so the system will
generate a new set of tokens on each request. I use use a splash page
('you are logged in - click here to continue'), or I use javascript to
redirect the user after a successful login. Once the cookies are set
cflocation will work fine.
-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 12:51 PM
To: CF-Talk
Subject: BIZZARE Session Problem
I thought I had this fixed, changes we made the last couple of days
eliminated the problem for some users. After adding addToken="no" to all
our <cflocation> tags and removing unnecessary sessionmanagement="yes"
and sessiontimeout parameters from the <cfapplication> tag in the root
Application.cfm file, more useres where able to correctly use the
application. But continued use and testing have determined that some
clients are still experiencing the problem.
To summerize the problem again. We have a training application that is
supposed to time out after 15 minutes of inactivity. We are using a
variable SESSION.registered set to time out in 15 minutes to track this.
Then each template through Application.cfm in the training application
checks to make sure that this variable exists before displaying the
page. But the session is not persisting for some users. For some reason,
new CFID and CFTOKENS are being generated by every HTTP request. Thus
SESSION.registered keeps disappearing by the next page and the user is
put into an endless loop.
Please refer to the following link to see the previous topic on this
problem.
Thank You
Ian Skinner
Web Development
Blood Source
Sacramento CA
Referring URL 1:
<http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=2&thre
adid
=510315>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com