Form Authentication Login Redirect and Viewstate

K

Kirsten

I'm trying to preserve viewstate even if the user is redirected to the login
page (Form authentication).
I managed to save viewstate with
LoadPageStateFromPersistenceMedium/SavePageStateToPersistenceMedium to the
session object but what I can't do is to call
SavePageStateToPersistenceMedium before redirecting to the login page (e.g.
in case of a timeout).

Any ideas?
Thanks!
 
G

Gregory A. Beamer

I'm trying to preserve viewstate even if the user is redirected to the
login page (Form authentication).

I am confused here. Except in the case of timeout, how can a user fill
out a form without being authenticated and then asked to authenticate?
Do you just mean in the session timeout scenario?
I managed to save viewstate with
LoadPageStateFromPersistenceMedium/SavePageStateToPersistenceMedium to
the session object but what I can't do is to call
SavePageStateToPersistenceMedium before redirecting to the login page
(e.g. in case of a timeout).

My personal feelings on this is set up the pages to timeout about the
same time as the web application and then handle it from the redirect.
The data saved back will have to be persisted somewhere and keyed to the
user's ID, but it is far better than having someone go to lunch with a
fully filled out form and then hitting submit 2 hours later when he gets
back to the app. In essence, you are forcing the client side to timeout
prior to the server side timing out.

Peace and Grace,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top