Re: Pushing Timeout Alert to Client.

2003-11-17 Thread peter . tilbrook
Ian, there are a couple of possible solutions in the Macromedia ColdFusion
Exchange:

CF_SessionWatch by Pete Freitag:

Ever wanted an OnSessionEnd event, or a way for users to be asked if they
would like their session to continue just before it times out?

cf_sessionWatch allows you to set a timeout, and uses _javascript_ to create
an event when that timeout occurrs.  The user can then decide if they want
their session extended, it will refresh their session without interrupting
the form they are working on.

CF_TimeOutWarning by Steven Semrau:

Popping up a warning message when the user is about to timeout.  This will
give the user a chance to save their work and refresh the page, before they
lose their information.  The tag uses a mix of ColdFusion and _javascript_ to
accomplish this.

HTH.

Peter Tilbrook
Transitional Services - Enterprise eSolutions
Centrelink (http://www.centrelink.gov.au)
2 Faulding Street
Symonston ACT 2609

Tel: (02) 62115927

    
  Ian Skinner   
  <[EMAIL PROTECTED]To:   CF-Talk <[EMAIL PROTECTED]>   
  source.org>   cc: 
Subject:  Pushing Timeout Alert to Client.  
  18/11/2003 07:26  
  Please respond to 
  cf-talk|
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Pushing Timeout Alert to Client.

2003-11-17 Thread DURETTE, STEVEN J (AIT)
Ian,

 
Long time since we talked.

 
I think that I have a solution to your problem.  It's _javascript_ based.

 
Create the following function in the head section of your page.

 
<br>
<!--<br>
 function timeOutPage() {<br>
  alert("Your Session has timed out!");<br>
  window.location.href = "">
 }<br>
//--><br>


then in your body tag put:


 
The 5000 in this case is 5 seconds.  setTimeout work on milliseconds.

 
After the user clicks ok the page is automatically redirected.

 
Hope it helps,

 
Steve

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 4:08 PM
To: CF-Talk
Subject: RE: Pushing Timeout Alert to Client.

Interesting Idea, I would set a meta refresh to the time out, or a bit less,
that would redirect the user to a "your session has timed out page."  I
could see that working.

Anybody know any potential problems I might encounter with this.  Right now
it just hast to work in IE 5.5 and up, but I would rather not count on that
if I don't have too.  So, any problems with doing this in other situations?
Maybe with some span/popup blocking tools?  Other Browsers? User settings in
these browsers?

-- 
Ian Skinner 
Web Programmer 
BloodSource 
www.BloodSource.org 
Sacramento, CA 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 12:57 PM
To: CF-Talk
Subject: Re: Pushing Timeout Alert to Client.

Could you set a meta refresh with a time that is a little smaller than your
session timeout and have the refresh handle the warning  you want?

-Kore

Ian Skinner

<[EMAIL PROTECTED]   To: CF-Talk
<[EMAIL PROTECTED]>  
ource.org>    cc:

  Subject: Pushing Timeout
Alert to Client.
11/17/2003 02:26 PM

Please respond to

cf-talk

This may not best be done with a CF solution, so I'm open to any
suggestions, the simpler the better.

BACKGROUND

We have a web application working with sensitive HIPPA information.  As one
could imagine, we don't really want to keep this information available for
very long, so the application session times out, if inactive for a set
time.

If the session has timed out while open in the browser, any new action by
the user causes the application to go to the start.  All this is good as
far
as it goes, but it would be much nicer to the user, if they receive a
warning of the pending and/or past expiration of the application.

The main reason for this request, is that the application has some fairly
complex data collection forms.  It could be annoying, if a user opens one
of
these form, gets interrupted by the phone, comes back after the session has
expired, enters all the data in the open form in their browser, submits the
form to be told by the server: "sorry your session has timed out", then
being sent back to the start losing all their work.

REQUEST

I'm looking for ways I might be able to push, or in someway deliver a
warning to the user?  My bank's online banking website does this, and while
I hate the bank itself, this is a nice feature.  I'm just not sure how they
do it.  How they have a popup window open when the session is about to
expire/has expired?  Would this just be done with _javascript_?  How else
might this be done?  Some kind of dynamic scheduled task?  Something built
in java and/or jsp?  Something one of you has already built and can just
give me. *smile*

Thanks

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

   _  

  _  


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




RE: Pushing Timeout Alert to Client.

2003-11-17 Thread Douglas.Knudsen
we use this often...it displays a count down in the status window of the browser.  It can be setup to redirect when the timer runs out.  

 

<!--<br>
//session timer variables<br>
var g_nSessionTimeout = <cfoutput>#request.time#</cfoutput>; // time out in minutes<br>
var g_nSessionWarn  = 0; //when to warn ** g_nSessionTimeout - g_nSessionWarn = displayed time when warning is displayed<br>
var g_nStopMinutes  = ( g_nSessionTimeout - 1 );<br>
var g_nStopSeconds  = 59; <br>
<br>
function stop() {<br>
   clearTimeout(tick);<br>
   }<br>
   <br>
function sessionTimer() <br>
{  <br>
  <br>
  if ( g_nSessionTimeout != 0 )<br>
  {<br>
 if ( g_nStopSeconds == 0 )<br>
 {<br>
  g_nStopSeconds = 59;<br>
  g_nStopMinutes = ( g_nStopMinutes - 1 );<br>
  if ( g_nStopMinutes == ( ( g_nSessionTimeout - g_nSessionWarn) - 1 ) )<br>
   window.alert('For security reasons your session will \n time out in ' +  (g_nSessionTimeout - g_nSessionWarn)  + ' minutes if there is no activity.');<br>
 }<br>
 else<br>
  g_nStopSeconds = (g_nStopSeconds - 1);<br>
<br>
 if (g_nStopSeconds <= 9)<br>
  g_nStopSeconds = "0" + g_nStopSeconds;<br>
  <br>
 window.status = ('Your Session Will Time Out In ' + g_nStopMinutes + ':' + g_nStopSeconds );<br>
<br>
if ( ( g_nStopMinutes == 0) && ( g_nStopSeconds == 0) )<br>
 {<br>
  window.status = 'Your sesson has been disconnected';<br>
<br>
 <br>
  var url = "">
  arg = ""<br>
  arg = arg + "/login/index.cfm?action="">
  url1 = url.substring(0,url.lastIndexOf(".asp")+1)<br>
  top.location.href = "">
  <br>
 }<br>
 else<br>
  setTimeout( "sessionTimer()",1000 ); <br>
  }<br>
}<br>
<br>
 <br>
sessionTimer(); <br>
<br>
 <br>
//--><br>


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:57 PM
To: CF-Talk
Subject: Re: Pushing Timeout Alert to Client.

Could you set a meta refresh with a time that is a little smaller than your
session timeout and have the refresh handle the warning  you want?

-Kore

   
Ian Skinner
<[EMAIL PROTECTED]   To: CF-Talk <[EMAIL PROTECTED]>  
ource.org>    cc:  
  Subject: Pushing Timeout Alert to Client.
11/17/2003 02:26 PM    
Please respond to  
cf-talk    
   
   

This may not best be done with a CF solution, so I'm open to any
suggestions, the simpler the better.

BACKGROUND

We have a web application working with sensitive HIPPA information.  As one
could imagine, we don't really want to keep this information available for
very long, so the application session times out, if inactive for a set
time.

If the session has timed out while open in the browser, any new action by
the user causes the application to go to the start.  All this is good as
far
as it goes, but it would be much nicer to the user, if they receive a
warning of the pending and/or past expiration of the application.

The main reason for this request, is that the application has some fairly
complex data collection forms.  It could be annoying, if a user opens one
of
these form, gets interrupted by the phone, comes back after the session has
expired, enters all the data in the open form in their browser, submits the
form to be told by the server: "sorry your session has timed out", then
being sent back to the start losing all their work.

REQUEST

I'm looking for ways I might be able to push, or in someway deliver a
warning to the user?  My bank's online banking website does this, and while
I hate the bank itself, this is a nice feature.  I'm just not sure how they
do it.  How they have a popup window open wh

RE: Pushing Timeout Alert to Client.

2003-11-17 Thread Ian Skinner
Interesting Idea, I would set a meta refresh to the time out, or a bit less,
that would redirect the user to a "your session has timed out page."  I
could see that working.

 
Anybody know any potential problems I might encounter with this.  Right now
it just hast to work in IE 5.5 and up, but I would rather not count on that
if I don't have too.  So, any problems with doing this in other situations?
Maybe with some span/popup blocking tools?  Other Browsers? User settings in
these browsers?

-- 
Ian Skinner 
Web Programmer 
BloodSource 
www.BloodSource.org 
Sacramento, CA 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 12:57 PM
To: CF-Talk
Subject: Re: Pushing Timeout Alert to Client.

Could you set a meta refresh with a time that is a little smaller than your
session timeout and have the refresh handle the warning  you want?

-Kore


Ian Skinner

<[EMAIL PROTECTED]   To: CF-Talk
<[EMAIL PROTECTED]>  
ource.org>    cc:

  Subject: Pushing Timeout
Alert to Client.
11/17/2003 02:26 PM

Please respond to

cf-talk



This may not best be done with a CF solution, so I'm open to any
suggestions, the simpler the better.

BACKGROUND

We have a web application working with sensitive HIPPA information.  As one
could imagine, we don't really want to keep this information available for
very long, so the application session times out, if inactive for a set
time.

If the session has timed out while open in the browser, any new action by
the user causes the application to go to the start.  All this is good as
far
as it goes, but it would be much nicer to the user, if they receive a
warning of the pending and/or past expiration of the application.

The main reason for this request, is that the application has some fairly
complex data collection forms.  It could be annoying, if a user opens one
of
these form, gets interrupted by the phone, comes back after the session has
expired, enters all the data in the open form in their browser, submits the
form to be told by the server: "sorry your session has timed out", then
being sent back to the start losing all their work.

REQUEST

I'm looking for ways I might be able to push, or in someway deliver a
warning to the user?  My bank's online banking website does this, and while
I hate the bank itself, this is a nice feature.  I'm just not sure how they
do it.  How they have a popup window open when the session is about to
expire/has expired?  Would this just be done with _javascript_?  How else
might this be done?  Some kind of dynamic scheduled task?  Something built
in java and/or jsp?  Something one of you has already built and can just
give me. *smile*

Thanks

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

   _  


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




RE: Pushing Timeout Alert to Client.

2003-11-17 Thread kpeterson
How about setting the meta refresh greater than your session timeout and
then have a page come up that tells the user of their current fate? Added
benefit would be any sensitive info in the browser would be cleared by the
refresh.

-Kore

   
Ian Skinner
<[EMAIL PROTECTED]   To: CF-Talk <[EMAIL PROTECTED]>  
ource.org>    cc:  
  Subject: RE: Pushing Timeout Alert to Client.
11/17/2003 03:01 PM    
Please respond to  
cf-talk    
   
   


That's an interesting Idea, and I will file it away in my head, but it's
not
really the solution to my current problem.  We want the session to time out
so that's good.  I would just like to warn a user who has left the browser
open that after it's timed out, any data you try to submit now is going to
be lost, so you might as well start over first.

Thanks

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-Original Message-
From: Robyn Follen [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 12:37 PM
To: CF-Talk
Subject: RE: Pushing Timeout Alert to Client.

While this doesn't quite answer your question as to an alert, it might help
with your timeout issue.

If you have a lot of big forms that the user has to fill out, and you're
worried about timeouts while the user is filling out the form, you could
have a hidden frame in the form, and an onFocus event on the fields that
the
user has to fill out.  The function called each time the field gets focus
could reload the hidden frame's page, which would then keep the session
alive while the user fills out the form.

For instance:


>

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:26 PM
To: CF-Talk
Subject: Pushing Timeout Alert to Client.

This may not best be done with a CF solution, so I'm open to any
suggestions, the simpler the better.

BACKGROUND

We have a web application working with sensitive HIPPA information.  As one
could imagine, we don't really want to keep this information available for
very long, so the application session times out, if inactive for a set
time.

If the session has timed out while open in the browser, any new action by
the user causes the application to go to the start.  All this is good as
far
as it goes, but it would be much nicer to the user, if they receive a
warning of the pending and/or past expiration of the application.

The main reason for this request, is that the application has some fairly
complex data collection forms.  It could be annoying, if a user opens one
of
these form, gets interrupted by the phone, comes back after the session has
expired, enters all the data in the open form in their browser, submits the
form to be told by the server: "sorry your session has timed out", then
being sent back to the start losing all their work.

REQUEST

I'm looking for ways I might be able to push, or in someway deliver a
warning to the user?  My bank's online banking website does this, and while
I hate the bank itself, this is a nice feature.  I'm just not sure how they
do it.  How they have a popup window open when the session is about to
expire/has expired?  Would this just be done with _javascript_?  How else
might this be done?  Some kind of dynamic scheduled task?  Something built
in java and/or jsp?  Something one of you has already built and can just
give me. *smile*

Thanks

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

  _

   _


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




RE: Pushing Timeout Alert to Client.

2003-11-17 Thread Ian Skinner
That's an interesting Idea, and I will file it away in my head, but it's not
really the solution to my current problem.  We want the session to time out
so that's good.  I would just like to warn a user who has left the browser
open that after it's timed out, any data you try to submit now is going to
be lost, so you might as well start over first.

 
Thanks

 
-- 
Ian Skinner 
Web Programmer 
BloodSource 
www.BloodSource.org 
Sacramento, CA 

-Original Message-
From: Robyn Follen [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 12:37 PM
To: CF-Talk
Subject: RE: Pushing Timeout Alert to Client.

While this doesn't quite answer your question as to an alert, it might help
with your timeout issue.

If you have a lot of big forms that the user has to fill out, and you're
worried about timeouts while the user is filling out the form, you could
have a hidden frame in the form, and an onFocus event on the fields that the
user has to fill out.  The function called each time the field gets focus
could reload the hidden frame's page, which would then keep the session
alive while the user fills out the form.  

For instance:


>

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:26 PM
To: CF-Talk
Subject: Pushing Timeout Alert to Client.

This may not best be done with a CF solution, so I'm open to any
suggestions, the simpler the better.

BACKGROUND

We have a web application working with sensitive HIPPA information.  As one
could imagine, we don't really want to keep this information available for
very long, so the application session times out, if inactive for a set time.

If the session has timed out while open in the browser, any new action by
the user causes the application to go to the start.  All this is good as far
as it goes, but it would be much nicer to the user, if they receive a
warning of the pending and/or past expiration of the application.

The main reason for this request, is that the application has some fairly
complex data collection forms.  It could be annoying, if a user opens one of
these form, gets interrupted by the phone, comes back after the session has
expired, enters all the data in the open form in their browser, submits the
form to be told by the server: "sorry your session has timed out", then
being sent back to the start losing all their work.

REQUEST

I'm looking for ways I might be able to push, or in someway deliver a
warning to the user?  My bank's online banking website does this, and while
I hate the bank itself, this is a nice feature.  I'm just not sure how they
do it.  How they have a popup window open when the session is about to
expire/has expired?  Would this just be done with _javascript_?  How else
might this be done?  Some kind of dynamic scheduled task?  Something built
in java and/or jsp?  Something one of you has already built and can just
give me. *smile*

Thanks

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

  _  

   _  


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




Re: Pushing Timeout Alert to Client.

2003-11-17 Thread kpeterson
Could you set a meta refresh with a time that is a little smaller than your
session timeout and have the refresh handle the warning  you want?

-Kore


   
Ian Skinner
<[EMAIL PROTECTED]   To: CF-Talk <[EMAIL PROTECTED]>  
ource.org>    cc:  
  Subject: Pushing Timeout Alert to Client.
11/17/2003 02:26 PM    
Please respond to  
cf-talk    
   
   


This may not best be done with a CF solution, so I'm open to any
suggestions, the simpler the better.

BACKGROUND

We have a web application working with sensitive HIPPA information.  As one
could imagine, we don't really want to keep this information available for
very long, so the application session times out, if inactive for a set
time.

If the session has timed out while open in the browser, any new action by
the user causes the application to go to the start.  All this is good as
far
as it goes, but it would be much nicer to the user, if they receive a
warning of the pending and/or past expiration of the application.

The main reason for this request, is that the application has some fairly
complex data collection forms.  It could be annoying, if a user opens one
of
these form, gets interrupted by the phone, comes back after the session has
expired, enters all the data in the open form in their browser, submits the
form to be told by the server: "sorry your session has timed out", then
being sent back to the start losing all their work.

REQUEST

I'm looking for ways I might be able to push, or in someway deliver a
warning to the user?  My bank's online banking website does this, and while
I hate the bank itself, this is a nice feature.  I'm just not sure how they
do it.  How they have a popup window open when the session is about to
expire/has expired?  Would this just be done with _javascript_?  How else
might this be done?  Some kind of dynamic scheduled task?  Something built
in java and/or jsp?  Something one of you has already built and can just
give me. *smile*

Thanks

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.


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




RE: Pushing Timeout Alert to Client.

2003-11-17 Thread Robyn Follen
While this doesn't quite answer your question as to an alert, it might help
with your timeout issue.

 
If you have a lot of big forms that the user has to fill out, and you're
worried about timeouts while the user is filling out the form, you could
have a hidden frame in the form, and an onFocus event on the fields that the
user has to fill out.  The function called each time the field gets focus
could reload the hidden frame's page, which would then keep the session
alive while the user fills out the form.  

 
For instance:

 

>


-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:26 PM
To: CF-Talk
Subject: Pushing Timeout Alert to Client.

This may not best be done with a CF solution, so I'm open to any
suggestions, the simpler the better.

BACKGROUND

We have a web application working with sensitive HIPPA information.  As one
could imagine, we don't really want to keep this information available for
very long, so the application session times out, if inactive for a set time.

If the session has timed out while open in the browser, any new action by
the user causes the application to go to the start.  All this is good as far
as it goes, but it would be much nicer to the user, if they receive a
warning of the pending and/or past expiration of the application.

The main reason for this request, is that the application has some fairly
complex data collection forms.  It could be annoying, if a user opens one of
these form, gets interrupted by the phone, comes back after the session has
expired, enters all the data in the open form in their browser, submits the
form to be told by the server: "sorry your session has timed out", then
being sent back to the start losing all their work.

REQUEST

I'm looking for ways I might be able to push, or in someway deliver a
warning to the user?  My bank's online banking website does this, and while
I hate the bank itself, this is a nice feature.  I'm just not sure how they
do it.  How they have a popup window open when the session is about to
expire/has expired?  Would this just be done with _javascript_?  How else
might this be done?  Some kind of dynamic scheduled task?  Something built
in java and/or jsp?  Something one of you has already built and can just
give me. *smile*

Thanks

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

  _  


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