Re: cf5 session variables

2004-06-10 Thread Doug James
The admin timeout is set to 20 minutes and the cfapplication timeout is 
set to 3 hours. I have confirmation from an MM employee that the admin 
timeout setting is the maximum allowed, used for security reasons, and 
the cfapplication can lower the time but not go over the admin time.

With all of that said, any suggestions on how to keep a session alive 
beyond the 20 minutes?

Doug

Semrau Steven Ctr SAF/IE wrote:

Is the 3 hour timeout specified within the CF Administrator or the CFApplication tag?The Administrator setting will override the TAG setting IF the Administrator setting is a lower value then the TAG setting.In other words, if the application tag is set for 3 hours and the administrator is set for 30 minutes, 30 minutes would prevail as the timeout value.
 
 

-Original Message-
From: Doug James [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 12:17 PM
To: CF-Talk
Subject: Re: cf5 session variables


The situation I have is a cfm page with an html page (that submits a 
form to a cfm) embedded in an iframe. The outer cfm page is viewed by 
our clients for up to an hour or more. After a about 30 minutes or so of 
inactivity causes the next submission to bomb out. The session time out 
is set to 3 hours but it acting like the html page is timing out after 
30 minutes.

Any suggestions?

Thanks!

Doug

Dave Watts wrote:



Could someone please refresh my memory regarding session 
variables and cf5. Should all reads and writes be locked?




Yes.

 

 

Has anyone experienced problems with session variables being 
passed from a cfm template to an html page and then on to a 
2nd cfm template?




For obvious reasons, you won't be able to pass Session variables themselves
to an HTML page - it's not a program, so you really can't pass anything to
it. If you're using cookies to associate browsers with sessions, those
cookies should be passed from the browser to requests for any file, whether
it's .cfm or .html or whatever. If you're not using cookies and instead are
relying on data embedded within URLs, you won't be able to rewrite those
URLs within a static HTML page very easily.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444



 

_




 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cf5 session variables

2004-06-10 Thread Semrau Steven Ctr SAF/IE
There are a couple of custom tags in the Exchange that deal with this, if I remember correctly, heck you might even be able to find the one I did 3 years ago.

 
Basically you would run a _javascript_ timer in the background that would load/reset every page call.The timer would be set to expire (x) number of minutes prior to the session timeout (yours being 20 minutes).When the _javascript_ timer reaches ZERO you would notify the user that they have been idle for x amount of minutes and will timeout in (session timeout value - time elapsed).

 
I do have an updated set of tags for this that I have been working on that also includes an admin interface to change the values (timeout value, how many minutes before the timeout should the pop-up be presented, message to display, css support and so on) which stores the values in application variables as well as writing a txt or wddx packet so that if the server/service was restarted the setting would be retained.

 
If you don't find the Exchange tags to your liking and you want to take a look at what I have now, instead of rolling your own, send me an email offline at ( [EMAIL PROTECTED]), unfortunately I don't have the files here at work.

Steven Semrau
Senior Software Engineer
SRA International, Inc

-Original Message-
From: Doug James [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 2:03 PM
To: CF-Talk
Subject: Re: cf5 session variables

The admin timeout is set to 20 minutes and the cfapplication timeout is 
set to 3 hours. I have confirmation from an MM employee that the admin 
timeout setting is the maximum allowed, used for security reasons, and 
the cfapplication can lower the time but not go over the admin time.

With all of that said, any suggestions on how to keep a session alive 
beyond the 20 minutes?

Doug

Semrau Steven Ctr SAF/IE wrote:

Is the 3 hour timeout specified within the CF Administrator or the CFApplication tag?The Administrator setting will override the TAG setting IF the Administrator setting is a lower value then the TAG setting.In other words, if the application tag is set for 3 hours and the administrator is set for 30 minutes, 30 minutes would prevail as the timeout value.
 
 

-Original Message-
From: Doug James [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 12:17 PM
To: CF-Talk
Subject: Re: cf5 session variables


The situation I have is a cfm page with an html page (that submits a 
form to a cfm) embedded in an iframe. The outer cfm page is viewed by 
our clients for up to an hour or more. After a about 30 minutes or so of 
inactivity causes the next submission to bomb out. The session time out 
is set to 3 hours but it acting like the html page is timing out after 
30 minutes.

Any suggestions?

Thanks!

Doug

Dave Watts wrote:



Could someone please refresh my memory regarding session 
variables and cf5. Should all reads and writes be locked?




Yes.

 

 

Has anyone experienced problems with session variables being 
passed from a cfm template to an html page and then on to a 
2nd cfm template?




For obvious reasons, you won't be able to pass Session variables themselves
to an HTML page - it's not a program, so you really can't pass anything to
it. If you're using cookies to associate browsers with sessions, those
cookies should be passed from the browser to requests for any file, whether
it's .cfm or .html or whatever. If you're not using cookies and instead are
relying on data embedded within URLs, you won't be able to rewrite those
URLs within a static HTML page very easily.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444



 

_



 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cf5 session variables

2004-06-10 Thread Matt Friedman
Can you move it to a client variable?
Or place in the application.cfm a check for the session, if it is not there then rebuild the session based off an cookie value.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cf5 session variables

2004-06-10 Thread Semrau Steven Ctr SAF/IE
There are a couple of custom tags in the Exchange that deal with this, if I remember correctly, heck you might even be able to find the one I did 3 years ago.

 
Basically you would run a _javascript_ timer in the background that would load/reset every page call.The timer would be set to expire (x) number of minutes prior to the session timeout (yours being 20 minutes).When the _javascript_ timer reaches ZERO you would notify the user that they have been idle for x amount of minutes and will timeout in (session timeout value - time elapsed).

 
I do have an updated set of tags for this that I have been working on that also includes an admin interface to change the values (timeout value, how many minutes before the timeout should the pop-up be presented, message to display, css support and so on) which stores the values in application variables as well as writing a txt or wddx packet so that if the server/service was restarted the setting would be retained.

 
If you don't find the Exchange tags to your liking and you want to take a look at what I have now, instead of rolling your own, send me an email offline at ( [EMAIL PROTECTED]), unfortunately I don't have the files here at work.

Steven Semrau
Senior Software Engineer
SRA International, Inc

-Original Message-
From: Doug James [mailto:[EMAIL PROTECTED]

The admin timeout is set to 20 minutes and the cfapplication timeout is set to 3 hours. I have confirmation from an MM employee that the admin timeout setting is the maximum allowed, used for security reasons, and the cfapplication can lower the time but not go over the admin time.

With all of that said, any suggestions on how to keep a session alive beyond the 20 minutes?

Doug
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cf5 session variables

2004-06-09 Thread Shawn Grover
with CF5, you can configure the server to automagically lock for you.We routinely configured the server to automatically lock on read, but put policy in place to have the coders do a manual lock (via cflock) anytime they assigned a value to a session variable (writes).

 
If you do not configure the server, then all reads and writes should be locked. (to the best of my knowledge at least).

 
Shawn

-Original Message-
From: Doug James [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 9:30 AM
To: CF-Talk
Subject: cf5 session variables

Could someone please refresh my memory regarding session variables and cf5.
Should all reads and writes be locked?
Has anyone experienced problems with session variables being passed from 
a cfm template to an html page and then on to a 2nd cfm template?

TIA!

Doug 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cf5 session variables

2004-06-09 Thread Dave Watts
 Could someone please refresh my memory regarding session 
 variables and cf5. Should all reads and writes be locked?

Yes.

 Has anyone experienced problems with session variables being 
 passed from a cfm template to an html page and then on to a 
 2nd cfm template?

For obvious reasons, you won't be able to pass Session variables themselves
to an HTML page - it's not a program, so you really can't pass anything to
it. If you're using cookies to associate browsers with sessions, those
cookies should be passed from the browser to requests for any file, whether
it's .cfm or .html or whatever. If you're not using cookies and instead are
relying on data embedded within URLs, you won't be able to rewrite those
URLs within a static HTML page very easily.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cf5 session variables

2004-06-09 Thread Doug James
The situation I have is a cfm page with an html page (that submits a 
form to a cfm) embedded in an iframe. The outer cfm page is viewed by 
our clients for up to an hour or more. After a about 30 minutes or so of 
inactivity causes the next submission to bomb out. The session time out 
is set to 3 hours but it acting like the html page is timing out after 
30 minutes.

Any suggestions?

Thanks!

Doug

Dave Watts wrote:

Could someone please refresh my memory regarding session 
variables and cf5. Should all reads and writes be locked?
 


Yes.



Has anyone experienced problems with session variables being 
passed from a cfm template to an html page and then on to a 
2nd cfm template?
 


For obvious reasons, you won't be able to pass Session variables themselves
to an HTML page - it's not a program, so you really can't pass anything to
it. If you're using cookies to associate browsers with sessions, those
cookies should be passed from the browser to requests for any file, whether
it's .cfm or .html or whatever. If you're not using cookies and instead are
relying on data embedded within URLs, you won't be able to rewrite those
URLs within a static HTML page very easily.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444



 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cf5 session variables

2004-06-09 Thread Semrau Steven Ctr SAF/IE
Is the 3 hour timeout specified within the CF Administrator or the CFApplication tag?The Administrator setting will override the TAG setting IF the Administrator setting is a lower value then the TAG setting.In other words, if the application tag is set for 3 hours and the administrator is set for 30 minutes, 30 minutes would prevail as the timeout value.

-Original Message-
From: Doug James [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 12:17 PM
To: CF-Talk
Subject: Re: cf5 session variables

The situation I have is a cfm page with an html page (that submits a 
form to a cfm) embedded in an iframe. The outer cfm page is viewed by 
our clients for up to an hour or more. After a about 30 minutes or so of 
inactivity causes the next submission to bomb out. The session time out 
is set to 3 hours but it acting like the html page is timing out after 
30 minutes.

Any suggestions?

Thanks!

Doug

Dave Watts wrote:

Could someone please refresh my memory regarding session 
variables and cf5. Should all reads and writes be locked?
 


Yes.



Has anyone experienced problems with session variables being 
passed from a cfm template to an html page and then on to a 
2nd cfm template?
 


For obvious reasons, you won't be able to pass Session variables themselves
to an HTML page - it's not a program, so you really can't pass anything to
it. If you're using cookies to associate browsers with sessions, those
cookies should be passed from the browser to requests for any file, whether
it's .cfm or .html or whatever. If you're not using cookies and instead are
relying on data embedded within URLs, you won't be able to rewrite those
URLs within a static HTML page very easily.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444


 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]