Re: Identify FormsAuthentication Timeout



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.



.



Relevant Pages

  • Re: Are ASP.NET user interfaces essentially dead now?
    ... interactive interface work -- they are fundamentally not suited to get the ... (or whatever client you choose). ... based app interface, or I can spend 2 months for the same windowsforms based ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Using kerberosSecurity Throws Security Exception
    ... I am experiencing this error while trying to use a Windows XP client ... application to access a web service located on a W2k3 server. ... client app on the server, ... > Account with a Custom Principal Name using SetSPN.exe utility. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: HTML vs Swing for U.I application architecture
    ... >> the latest web technologies. ... >> Swing to web any day of the week and twice on Sunday. ... but that is not an option for a cross platform app. ... When I wanted a thick client, ...
    (comp.lang.java.programmer)
  • Re: Error 3197 but there are no memo fields
    ... That sounds more like your app doing ... My client is actually fine with the concept of patches etc, ... I've got the Error 3197 problem ("The Microsoft Jet database ...
    (comp.databases.ms-access)
  • Re: Architectural feedback
    ... Most functionality will be accessed from our ... > with WinForms-based apps (assume all client machines are Windows running ... > unified under a single app. ... > core app must reside on the client or may be run from the server. ...
    (microsoft.public.dotnet.general)