RE: [KCFusion] Unexpected Loss of Session Variables

2003-06-17 Thread Smith, Jim



If you're using IIS on your server, take a 
look at the timeout on it. That has bit me before. Also make sure the time out 
on the cf server is what you want it to be.

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:11 
  PMTo: [EMAIL PROTECTED]Subject: [KCFusion] Unexpected 
  Loss of Session Variables
  Hello. I'm the new webmaster for stfm.org. Our website uses 
  ColdFusion5.0 as its web programming language. I'm originally a Java 
  Programmer(JavaServerPages), so I've had to learn CFML quickly (thanks to 
  BenForte's books).Our web site is hosted on a shared server 
  (crystaltech.com).We are experiencing unexpected loss of some or 
  all session variablesfor about 20% of our users. The session 
  variables are lost well beforethe 20 minute timeout limit.We 
  use session variables to maintain user input across approximately3-4 data 
  entry pages (page numbers vary based upon specific category). Our session 
  variables are set and read inside of cflock tags perColdFusion best 
  practices.The problem appears to worsen when we have more users 
  on our site, butthe number of users is not that significant (less than 
  20-30 per hour). This is a shared server, but I don't know the overall 
  load on theserver.I've reseached your listserver but did not 
  find any material on thissubject.
  From my research on Macromedia's forum, the loss of session 
  variablesappears to be a problem with ColdFusion 5. We are 
  considering changing our host plan to ColdFusion MX, though some of our 
  applications will need recoding since they use attributes no longer supported 
  in ColdFusion MX.
  
  I'd certainly appreciate any advice from more experienced ColdFusion 
  developers who may have encountered and solved this problem.
  
  Thank You,
  
  Bruce
  
  
  Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
  ext 5405[EMAIL PROTECTED]


RE: [KCFusion] Unexpected Loss of Session Variables

2003-06-17 Thread Smith, Jim



I'm not sure if this will help you, but 
here's the way I use it.

CFAPPLICATION NAME="xl"CLIENTMANAGEMENT="Yes"SESSIONMANAGEMENT="Yes"SESSIONTIMEOUT="#CREATETIMESPAN(0,0,20, 0)#"

I also lock my variables with like 
this:

cflock name="Session" type="Exclusive" 
timeout="30" throwontimeout="Yes"

In each template I use this 
statement:

cflock name="Session" type="ReadOnly" 
timeout="30" throwontimeout="Yes"CFPARAM 
Name="session."/cflock

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:53 
  PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
  Unexpected Loss of Session Variables
  cfapplication name="STFM-Presentation-Submission" 
  sessionmanagement="Yes" 
  
  Session variables are only lost by approximately 20% of users. 
  Remaining users experience no problem.
  
  Thanks for the assistance.
  
  Bruce
  
  Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
  ext 5405[EMAIL PROTECTED] 
  [EMAIL PROTECTED] 06/17/03 01:42PM 
  What does your cfapplication statement 
  look like?
  
-Original 
Message-From: Bruce Phillips 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:36 
PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
Unexpected Loss of Session Variables
Thanks for the quick reply. We are on a shared host. The 
hosting company has the timeout set to 20 minutes and we cannot adjust 
that. However, session variables are being lost before the 20 minute 
period (sometimes very quickly 1-2 minutes).

bruce

Bruce PhillipsSociety of Teachers of Family 
Medicine913-906-6000 ext 5405[EMAIL PROTECTED] 
[EMAIL PROTECTED] 06/17/03 01:25PM 
If you're using IIS on your server, take 
a look at the timeout on it. That has bit me before. Also make sure the time 
out on the cf server is what you want it to be.

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:11 
  PMTo: [EMAIL PROTECTED]Subject: [KCFusion] 
  Unexpected Loss of Session Variables
  Hello. I'm the new webmaster for stfm.org. Our website 
  uses ColdFusion5.0 as its web programming language. I'm 
  originally a Java Programmer(JavaServerPages), so I've had to learn 
  CFML quickly (thanks to BenForte's books).Our web site 
  is hosted on a shared server (crystaltech.com).We are 
  experiencing unexpected loss of some or all session variablesfor about 
  20% of our users. The session variables are lost well beforethe 
  20 minute timeout limit.We use session variables to maintain 
  user input across approximately3-4 data entry pages (page numbers vary 
  based upon specific category). Our session variables are set and read 
  inside of cflock tags perColdFusion best practices.The 
  problem appears to worsen when we have more users on our site, butthe 
  number of users is not that significant (less than 20-30 per hour). 
  This is a shared server, but I don't know the overall load on 
  theserver.I've reseached your listserver but did not 
  find any material on thissubject.
  From my research on Macromedia's forum, the loss of session 
  variablesappears to be a problem with ColdFusion 5. We are 
  considering changing our host plan to ColdFusion MX, though some of our 
  applications will need recoding since they use attributes no longer 
  supported in ColdFusion MX.
  
  I'd certainly appreciate any advice from more experienced ColdFusion 
  developers who may have encountered and solved this problem.
  
  Thank You,
  
  Bruce
  
  
  Bruce PhillipsSociety of Teachers of Family 
  Medicine913-906-6000 ext 5405[EMAIL PROTECTED]


RE: [KCFusion] Unexpected Loss of Session Variables

2003-06-17 Thread Bruce Phillips



Thanks for the quick reply. We are on a shared host. The 
hosting company has the timeout set to 20 minutes and we cannot adjust 
that. However, session variables are being lost before the 20 minute 
period (sometimes very quickly 1-2 minutes).

bruce

Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
ext 5405[EMAIL PROTECTED] 
[EMAIL PROTECTED] 06/17/03 01:25PM 
If you're using IIS on your server, take a 
look at the timeout on it. That has bit me before. Also make sure the time out 
on the cf server is what you want it to be.

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:11 
  PMTo: [EMAIL PROTECTED]Subject: [KCFusion] Unexpected 
  Loss of Session Variables
  Hello. I'm the new webmaster for stfm.org. Our website uses 
  ColdFusion5.0 as its web programming language. I'm originally a Java 
  Programmer(JavaServerPages), so I've had to learn CFML quickly (thanks to 
  BenForte's books).Our web site is hosted on a shared server 
  (crystaltech.com).We are experiencing unexpected loss of some or 
  all session variablesfor about 20% of our users. The session 
  variables are lost well beforethe 20 minute timeout limit.We 
  use session variables to maintain user input across approximately3-4 data 
  entry pages (page numbers vary based upon specific category). Our session 
  variables are set and read inside of cflock tags perColdFusion best 
  practices.The problem appears to worsen when we have more users 
  on our site, butthe number of users is not that significant (less than 
  20-30 per hour). This is a shared server, but I don't know the overall 
  load on theserver.I've reseached your listserver but did not 
  find any material on thissubject.
  From my research on Macromedia's forum, the loss of session 
  variablesappears to be a problem with ColdFusion 5. We are 
  considering changing our host plan to ColdFusion MX, though some of our 
  applications will need recoding since they use attributes no longer supported 
  in ColdFusion MX.
  
  I'd certainly appreciate any advice from more experienced ColdFusion 
  developers who may have encountered and solved this problem.
  
  Thank You,
  
  Bruce
  
  
  Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
  ext 5405[EMAIL PROTECTED]


RE: [KCFusion] Unexpected Loss of Session Variables

2003-06-17 Thread Kory Bakken



This may be completely useless 
but...

I do not remember howour web 
administratorresolved this, but in my last job we had this problem. 
It stemmed from users that use the same proxy server in an intranet 
environment. A new user would reset the session variables of any user 
previously logged in. This would cause sessions to timeout after very 
short periods of time.

So, my point is...if your users are 
utilizing the same proxy server, check those settings.

-Original 
Message-From: Bruce Phillips 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:36 
PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
Unexpected Loss of Session Variables

  Thanks for the quick reply. We are on a shared host. The 
  hosting company has the timeout set to 20 minutes and we cannot adjust 
  that. However, session variables are being lost before the 20 minute 
  period (sometimes very quickly 1-2 minutes).
  
  bruce
  
  Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
  ext 5405[EMAIL PROTECTED] 
  [EMAIL PROTECTED] 06/17/03 01:25PM 
  If you're using IIS on your server, take a 
  look at the timeout on it. That has bit me before. Also make sure the time out 
  on the cf server is what you want it to be.
  
-Original 
Message-From: Bruce Phillips 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:11 
PMTo: [EMAIL PROTECTED]Subject: [KCFusion] 
Unexpected Loss of Session Variables
Hello. I'm the new webmaster for stfm.org. Our website uses 
ColdFusion5.0 as its web programming language. I'm originally a 
Java Programmer(JavaServerPages), so I've had to learn CFML quickly 
(thanks to BenForte's books).Our web site is hosted on a 
shared server (crystaltech.com).We are experiencing unexpected 
loss of some or all session variablesfor about 20% of our users. 
The session variables are lost well beforethe 20 minute timeout 
limit.We use session variables to maintain user input across 
approximately3-4 data entry pages (page numbers vary based upon specific 
category). Our session variables are set and read inside of cflock tags 
perColdFusion best practices.The problem appears to worsen 
when we have more users on our site, butthe number of users is not that 
significant (less than 20-30 per hour). This is a shared server, but I 
don't know the overall load on theserver.I've reseached 
your listserver but did not find any material on 
thissubject.
From my research on Macromedia's forum, the loss of session 
variablesappears to be a problem with ColdFusion 5. We are 
considering changing our host plan to ColdFusion MX, though some of our 
applications will need recoding since they use attributes no longer 
supported in ColdFusion MX.

I'd certainly appreciate any advice from more experienced ColdFusion 
developers who may have encountered and solved this problem.

Thank You,

Bruce


Bruce PhillipsSociety of Teachers of Family 
Medicine913-906-6000 ext 5405[EMAIL PROTECTED]


RE: [KCFusion] Unexpected Loss of Session Variables

2003-06-17 Thread Smith, Jim



What does your cfapplication statement look 
like?

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:36 
  PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
  Unexpected Loss of Session Variables
  Thanks for the quick reply. We are on a shared host. The 
  hosting company has the timeout set to 20 minutes and we cannot adjust 
  that. However, session variables are being lost before the 20 minute 
  period (sometimes very quickly 1-2 minutes).
  
  bruce
  
  Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
  ext 5405[EMAIL PROTECTED] 
  [EMAIL PROTECTED] 06/17/03 01:25PM 
  If you're using IIS on your server, take a 
  look at the timeout on it. That has bit me before. Also make sure the time out 
  on the cf server is what you want it to be.
  
-Original 
Message-From: Bruce Phillips 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:11 
PMTo: [EMAIL PROTECTED]Subject: [KCFusion] 
Unexpected Loss of Session Variables
Hello. I'm the new webmaster for stfm.org. Our website uses 
ColdFusion5.0 as its web programming language. I'm originally a 
Java Programmer(JavaServerPages), so I've had to learn CFML quickly 
(thanks to BenForte's books).Our web site is hosted on a 
shared server (crystaltech.com).We are experiencing unexpected 
loss of some or all session variablesfor about 20% of our users. 
The session variables are lost well beforethe 20 minute timeout 
limit.We use session variables to maintain user input across 
approximately3-4 data entry pages (page numbers vary based upon specific 
category). Our session variables are set and read inside of cflock tags 
perColdFusion best practices.The problem appears to worsen 
when we have more users on our site, butthe number of users is not that 
significant (less than 20-30 per hour). This is a shared server, but I 
don't know the overall load on theserver.I've reseached 
your listserver but did not find any material on 
thissubject.
From my research on Macromedia's forum, the loss of session 
variablesappears to be a problem with ColdFusion 5. We are 
considering changing our host plan to ColdFusion MX, though some of our 
applications will need recoding since they use attributes no longer 
supported in ColdFusion MX.

I'd certainly appreciate any advice from more experienced ColdFusion 
developers who may have encountered and solved this problem.

Thank You,

Bruce


Bruce PhillipsSociety of Teachers of Family 
Medicine913-906-6000 ext 5405[EMAIL PROTECTED]


RE: [KCFusion] Unexpected Loss of Session Variables

2003-06-17 Thread Bruce Phillips



cfapplication name="STFM-Presentation-Submission" 
sessionmanagement="Yes" 

Session variables are only lost by approximately 20% of users. 
Remaining users experience no problem.

Thanks for the assistance.

Bruce

Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
ext 5405[EMAIL PROTECTED] 
[EMAIL PROTECTED] 06/17/03 01:42PM 
What does your cfapplication statement look 
like?

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:36 
  PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
  Unexpected Loss of Session Variables
  Thanks for the quick reply. We are on a shared host. The 
  hosting company has the timeout set to 20 minutes and we cannot adjust 
  that. However, session variables are being lost before the 20 minute 
  period (sometimes very quickly 1-2 minutes).
  
  bruce
  
  Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
  ext 5405[EMAIL PROTECTED] 
  [EMAIL PROTECTED] 06/17/03 01:25PM 
  If you're using IIS on your server, take a 
  look at the timeout on it. That has bit me before. Also make sure the time out 
  on the cf server is what you want it to be.
  
-Original 
Message-From: Bruce Phillips 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:11 
PMTo: [EMAIL PROTECTED]Subject: [KCFusion] 
Unexpected Loss of Session Variables
Hello. I'm the new webmaster for stfm.org. Our website uses 
ColdFusion5.0 as its web programming language. I'm originally a 
Java Programmer(JavaServerPages), so I've had to learn CFML quickly 
(thanks to BenForte's books).Our web site is hosted on a 
shared server (crystaltech.com).We are experiencing unexpected 
loss of some or all session variablesfor about 20% of our users. 
The session variables are lost well beforethe 20 minute timeout 
limit.We use session variables to maintain user input across 
approximately3-4 data entry pages (page numbers vary based upon specific 
category). Our session variables are set and read inside of cflock tags 
perColdFusion best practices.The problem appears to worsen 
when we have more users on our site, butthe number of users is not that 
significant (less than 20-30 per hour). This is a shared server, but I 
don't know the overall load on theserver.I've reseached 
your listserver but did not find any material on 
thissubject.
From my research on Macromedia's forum, the loss of session 
variablesappears to be a problem with ColdFusion 5. We are 
considering changing our host plan to ColdFusion MX, though some of our 
applications will need recoding since they use attributes no longer 
supported in ColdFusion MX.

I'd certainly appreciate any advice from more experienced ColdFusion 
developers who may have encountered and solved this problem.

Thank You,

Bruce


Bruce PhillipsSociety of Teachers of Family 
Medicine913-906-6000 ext 5405[EMAIL PROTECTED]


RE: [KCFusion] Unexpected Loss of Session Variables

2003-06-17 Thread Bruce Phillips



Thanks for the infor

I have some questions:

1. On each template are you loading all your session variables 
into local variables here:

cflock name="Session" type="ReadOnly" 
timeout="30" throwontimeout="Yes"CFPARAM 
Name="session."/cflock

2. What effect does the attribute 
throwontimeout="Yes" have?

Bruce


Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
ext 5405[EMAIL PROTECTED] 
[EMAIL PROTECTED] 06/17/03 02:23PM 
I'm not sure if this will help you, but 
here's the way I use it.

CFAPPLICATION NAME="xl"CLIENTMANAGEMENT="Yes"SESSIONMANAGEMENT="Yes"SESSIONTIMEOUT="#CREATETIMESPAN(0,0,20, 0)#"

I also lock my variables with like 
this:

cflock name="Session" type="Exclusive" 
timeout="30" throwontimeout="Yes"

In each template I use this 
statement:

cflock name="Session" type="ReadOnly" 
timeout="30" throwontimeout="Yes"CFPARAM 
Name="session."/cflock

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:53 
  PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
  Unexpected Loss of Session Variables
  cfapplication name="STFM-Presentation-Submission" 
  sessionmanagement="Yes" 
  
  Session variables are only lost by approximately 20% of users. 
  Remaining users experience no problem.
  
  Thanks for the assistance.
  
  Bruce
  
  Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
  ext 5405[EMAIL PROTECTED] 
  [EMAIL PROTECTED] 06/17/03 01:42PM 
  What does your cfapplication statement 
  look like?
  
-Original 
Message-From: Bruce Phillips 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:36 
PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
Unexpected Loss of Session Variables
Thanks for the quick reply. We are on a shared host. The 
hosting company has the timeout set to 20 minutes and we cannot adjust 
that. However, session variables are being lost before the 20 minute 
period (sometimes very quickly 1-2 minutes).

bruce

Bruce PhillipsSociety of Teachers of Family 
Medicine913-906-6000 ext 5405[EMAIL PROTECTED] 
[EMAIL PROTECTED] 06/17/03 01:25PM 
If you're using IIS on your server, take 
a look at the timeout on it. That has bit me before. Also make sure the time 
out on the cf server is what you want it to be.

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:11 
  PMTo: [EMAIL PROTECTED]Subject: [KCFusion] 
  Unexpected Loss of Session Variables
  Hello. I'm the new webmaster for stfm.org. Our website 
  uses ColdFusion5.0 as its web programming language. I'm 
  originally a Java Programmer(JavaServerPages), so I've had to learn 
  CFML quickly (thanks to BenForte's books).Our web site 
  is hosted on a shared server (crystaltech.com).We are 
  experiencing unexpected loss of some or all session variablesfor about 
  20% of our users. The session variables are lost well beforethe 
  20 minute timeout limit.We use session variables to maintain 
  user input across approximately3-4 data entry pages (page numbers vary 
  based upon specific category). Our session variables are set and read 
  inside of cflock tags perColdFusion best practices.The 
  problem appears to worsen when we have more users on our site, butthe 
  number of users is not that significant (less than 20-30 per hour). 
  This is a shared server, but I don't know the overall load on 
  theserver.I've reseached your listserver but did not 
  find any material on thissubject.
  From my research on Macromedia's forum, the loss of session 
  variablesappears to be a problem with ColdFusion 5. We are 
  considering changing our host plan to ColdFusion MX, though some of our 
  applications will need recoding since they use attributes no longer 
  supported in ColdFusion MX.
  
  I'd certainly appreciate any advice from more experienced ColdFusion 
  developers who may have encountered and solved this problem.
  
  Thank You,
  
  Bruce
  
  
  Bruce PhillipsSociety of Teachers of Family 
  Medicine913-906-6000 ext 5405[EMAIL PROTECTED]


RE: [KCFusion] Unexpected Loss of Session Variables

2003-06-17 Thread Smith, Jim



No, I'm not loading it into a local 
variable, just checking to make sure it exist. Throwontimeout produces an error 
that is trapped and deliver to the browser alerting the user. If you have a lot 
of activity on your web app and you do not lock your session variables it can 
produce errors that seem to be time outs, but in reality the session variables 
get crunched by another session.

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 2:50 
  PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
  Unexpected Loss of Session Variables
  Thanks for the infor
  
  I have some questions:
  
  1. On each template are you loading all your session 
  variables into local variables here:
  
  cflock name="Session" type="ReadOnly" 
  timeout="30" throwontimeout="Yes"CFPARAM 
  Name="session."/cflock
  
  2. What effect does the attribute 
  throwontimeout="Yes" have?
  
  Bruce
  
  
  Bruce PhillipsSociety of Teachers of Family Medicine913-906-6000 
  ext 5405[EMAIL PROTECTED] 
  [EMAIL PROTECTED] 06/17/03 02:23PM 
  I'm not sure if this will help you, but 
  here's the way I use it.
  
  CFAPPLICATION NAME="xl"CLIENTMANAGEMENT="Yes"SESSIONMANAGEMENT="Yes"SESSIONTIMEOUT="#CREATETIMESPAN(0,0,20, 0)#"
  
  I also lock my variables with like 
  this:
  
  cflock name="Session" type="Exclusive" 
  timeout="30" throwontimeout="Yes"
  
  In each template I use this 
  statement:
  
  cflock name="Session" type="ReadOnly" 
  timeout="30" throwontimeout="Yes"CFPARAM 
  Name="session."/cflock
  
-Original 
Message-From: Bruce Phillips 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:53 
PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
Unexpected Loss of Session Variables
cfapplication name="STFM-Presentation-Submission" 
sessionmanagement="Yes" 

Session variables are only lost by approximately 20% of users. 
Remaining users experience no problem.

Thanks for the assistance.

Bruce

Bruce PhillipsSociety of Teachers of Family 
Medicine913-906-6000 ext 5405[EMAIL PROTECTED] 
[EMAIL PROTECTED] 06/17/03 01:42PM 
What does your cfapplication statement 
look like?

  -Original 
  Message-From: Bruce Phillips 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:36 
  PMTo: [EMAIL PROTECTED]Subject: RE: [KCFusion] 
  Unexpected Loss of Session Variables
  Thanks for the quick reply. We are on a shared host. The 
  hosting company has the timeout set to 20 minutes and we cannot adjust 
  that. However, session variables are being lost before the 20 minute 
  period (sometimes very quickly 1-2 minutes).
  
  bruce
  
  Bruce PhillipsSociety of Teachers of Family 
  Medicine913-906-6000 ext 5405[EMAIL PROTECTED] 
  [EMAIL PROTECTED] 06/17/03 01:25PM 
  If you're using IIS on your server, 
  take a look at the timeout on it. That has bit me before. Also make sure 
  the time out on the cf server is what you want it to 
be.
  
-Original 
Message-From: Bruce Phillips 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 17, 2003 1:11 
PMTo: [EMAIL PROTECTED]Subject: [KCFusion] 
Unexpected Loss of Session Variables
Hello. I'm the new webmaster for stfm.org. Our website 
uses ColdFusion5.0 as its web programming language. I'm 
originally a Java Programmer(JavaServerPages), so I've had to learn 
CFML quickly (thanks to BenForte's books).Our web site 
is hosted on a shared server (crystaltech.com).We are 
experiencing unexpected loss of some or all session variablesfor 
about 20% of our users. The session variables are lost well 
beforethe 20 minute timeout limit.We use session 
variables to maintain user input across approximately3-4 data entry 
pages (page numbers vary based upon specific category). Our session 
variables are set and read inside of cflock tags perColdFusion best 
practices.The problem appears to worsen when we have more 
users on our site, butthe number of users is not that significant 
(less than 20-30 per hour). This is a shared server, but I don't 
know the overall load on theserver.I've reseached your 
listserver but did not find any material on 
thissubject.
From my research on Macromedia's forum, the loss of session 
variablesappears to be a problem with ColdFusion 5. We are 
considering changing our host plan to ColdFusion MX, though some of our 
applications will need recoding since they use attributes no longer 
supported in ColdFusion MX.

I'd certainly appreciate any advice from more experienced 
ColdFusion developers who may have encountered and solved this 
problem.

Thank You,

   

RE: [KCFusion] Unexpected Loss of Session Variables

2003-06-17 Thread Ryan Hartwich
Title: Message



While this is 
a far off chance, see if you can get a hold of the webserver and/or CF 
logs. With a shared server, you may be experiencing problems caused by 
other people's code, more specifically their CF. If they do something that 
causes the CF server to hang and restart, you will loose your session 
variables. With a shared solution, particularly with heavy loading and 
unlocked application/session variable access, the application server may be 
restarting. The logs should show evidence of coldfusion 
restarting.

There is a 
setting in the CF administrator that allows you to set CF to restart after a set 
number of errors of some kind. I believe the default is 10 errors, though 
what kind of errors I do not recall. IF this is the case, the only way 
around it is with proper server sandbox configuration (if even that) or a 
dedicated environment (since you can't rely on everyone to write good 
code). This may not be the problem however.

Also, look 
into using Client variables versus session variables. They are stored in a 
database versus Ram and are less susceptible to corruption and loss. I am 
not sure if you will loose your session anyway if the server restarts CF, but it 
might help. You can also look into dropping a short term cookie on the 
client's web browser to store a quasi session token. You can probably get 
around the cookie by using a unique (but not risky row identifier) value from 
the database and appending it to each page request/form submission. By 
using it, and forcibly storing the form variables immediately after each page 
submission, you can probably get away from using session variables. I 
wouldn't recommend this normally, but it may be a useful 
workaround.

Ryan