Re: Identify FormsAuthentication Timeout
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 4 Jun 2009 10:19:19 -0500
Probably your best best is to change the forms auth ticket so that it doesn't expire or takes a very long time to expire. Your app is not well designed to deal with a long running process on the client side like filling out a very long form, so you really can't afford to allow the app to redirect the user to a different page in the middle of this.
If you still want the auth to time out, you'll probably need to invest in some client side javascript that will "test" whether the form post can be submitted without a timeout via some type of AJAX call and if it is going to fail, instead pop up a new window (or some type of overlay) that allows the user to reauthenticate without a change to the underlying page. Basically, if the server redirects the user to log in again as a result of an authentication failure and issues a 302 redirect to the browser, the user will lose all their data so you'll need to make sure the page never submits an action that will cause this to happen. Client side script is the only thing I can think of here.
In the future, you may also want to consider allowing the app to auto save and allow for violations of the business rules for intermediate (not submitted) data. Basically, you need a function like email clients have to "save as draft" with auto save. Gmail and OWA do a nice job with this in the browser.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"Chuck" <nospam2@xxxxxxxxxxxxx> wrote in message news:24F49CB1-3F4C-4C92-BF34-5B3CDB788685@xxxxxxxxxxxxxxxx
Would have to be an unattended autosave, incase the user is away from the desk.
Also would have to change the logic of the save to not require required
fields before saving. Which involve removing constraints from the database
or changing to some sort of temporary data storage. Not trivial or even a
good idea IMHO.
.
- Follow-Ups:
- Re: Identify FormsAuthentication Timeout
- From: Chuck
- Re: Identify FormsAuthentication Timeout
- From: Chuck
- Re: Identify FormsAuthentication Timeout
- References:
- Identify FormsAuthentication Timeout
- From: Chuck
- Re: Identify FormsAuthentication Timeout
- From: Alexey Smirnov
- Re: Identify FormsAuthentication Timeout
- From: Chuck
- Re: Identify FormsAuthentication Timeout
- From: Joe Kaplan
- Re: Identify FormsAuthentication Timeout
- From: Chuck
- Re: Identify FormsAuthentication Timeout
- From: Alexey Smirnov
- Re: Identify FormsAuthentication Timeout
- From: Chuck
- Identify FormsAuthentication Timeout
- Prev by Date: Re: Identify FormsAuthentication Timeout
- Next by Date: Re: Error occurred while decoding OAEP padding.
- Previous by thread: Re: Identify FormsAuthentication Timeout
- Next by thread: Re: Identify FormsAuthentication Timeout
- Index(es):
Relevant Pages
|