PC Review


Reply
Thread Tools Rate Thread

Build an autosave function on page?

 
 
Groove
Guest
Posts: n/a
 
      30th Aug 2006
Hey guys -

I've used the Thread.Sleep(xyz) method before to trigger a pause in a sub or
function. I was wondering if anyone knew of a method to have a page
autosave itself after X minutes?

Here's the situation. I have a form with a lot of multi-line textboxes in a
site with the user is required to be logged into. The log in info is stored
in a session variable. Even though I can increase the session timeout value
on the server to go beyond the default 20 minutes, it's still possible for
the user to take "too long" in completing this form and the sessions will
expire. When they try to save the form after taking way too long, they will
be kicked out and sent back to the log in form. So they lose everything
they spent the last X minutes/hours typing in the form.

Just as a precaution and only to be used in rare cases, I thought an "auto
save" sub routine might do the trick. Perhaps have the form save itself
after 60 minutes to prevent this. Has anyone ever done anything like this
and could someone make any suggestions?

Thanks!

-Shane

asp/vb.net 2




 
Reply With Quote
 
 
 
 
bruce barker \(sqlwork.com\)
Guest
Posts: n/a
 
      30th Aug 2006
the same logic works. you just have to do it with client script using
window.setTimeout. your client script should post to a hidden frame for the
save, so there would be no rerender, that would mess up the users input.

-- bruce (sqlwork.com)

"Groove" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hey guys -
>
> I've used the Thread.Sleep(xyz) method before to trigger a pause in a sub
> or function. I was wondering if anyone knew of a method to have a page
> autosave itself after X minutes?
>
> Here's the situation. I have a form with a lot of multi-line textboxes in
> a site with the user is required to be logged into. The log in info is
> stored in a session variable. Even though I can increase the session
> timeout value on the server to go beyond the default 20 minutes, it's
> still possible for the user to take "too long" in completing this form and
> the sessions will expire. When they try to save the form after taking way
> too long, they will be kicked out and sent back to the log in form. So
> they lose everything they spent the last X minutes/hours typing in the
> form.
>
> Just as a precaution and only to be used in rare cases, I thought an "auto
> save" sub routine might do the trick. Perhaps have the form save itself
> after 60 minutes to prevent this. Has anyone ever done anything like this
> and could someone make any suggestions?
>
> Thanks!
>
> -Shane
>
> asp/vb.net 2
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installed autosave function and now have issue with redo function JT Spitz Microsoft Excel Misc 2 26th Oct 2009 04:46 PM
autosave function =?Utf-8?B?QWRpbmFD?= Microsoft Excel Setup 4 17th Nov 2006 07:52 PM
AutoSave function =?Utf-8?B?YnJlbnRt?= Microsoft Excel Programming 6 10th Mar 2005 09:55 PM
Autosave function? =?Utf-8?B?SXRhc3Npc3RhbnQ=?= Windows XP General 2 7th May 2004 06:17 PM
Autosave function Hal Microsoft Excel Worksheet Functions 3 22nd Oct 2003 12:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 PM.