Saving Form Data Across a Session Timeout

M

Mike

Hello:

I was not able to find a regular ASP group, so I posted this here instead.

I have a web app which is actually just ASP using VBScript as the
server-side language, running on IIS6. Users will log into the site and
enter in large amounts of data in forms and submit this data to be saved to
the database. Problem is, sometimes they submit the data after the session
has timed out. This makes them very angry when they have just filled out a
textarea field with a lot of text in it, because all of that data is now
lost.

I need a way to save this post or get data (depending on the form they are
submitting) somehow and to let the user re-log in and have the first page
they go to be the form they requested with all of the data already filled in
from what they were working on. I don't want to modify every single one of
my hundreds of web forms in order to do this. Anyone got a simple solution
for this?

I'd really it to go like this:

(1) User fills out form (session times out while filling out form)
(2) User submits form
(3) User is directed to login screen, informing them that session is timed
out
(4) User logs in
(5) User is redirected to the form they just submitted, with the form filled
out with the data they entered.

Any thoughts on this? Thanks in advance for any help!

-Mike
 
M

Mike

Another solution I suppose would be when the user clicks on the submit
button on a form, somehow the app checks to see if there is an active
session. If not, it opens up a modal "please login to continue" window.
When the user logs in successfully, it then submits the form and then closes
the modal window. Anyone ever done something like this before?
 
B

Biju

Hello:
That is the perfect solution for your problem .
Use XML island to check active session.Actually
we had a problem like this, solved by using the same solution

Biju
 
M

Mike

Biju:

Yeah, I've started working on this solution, but was wondering if anyone out
there had any implementation details on how they have accomplised this
(sample code you could point me to, etc).

Ran into some problems with the whole web dialog thing not allowing you to
change the url once loaded. So I did the tricky little Iframe within a
dialog trick and put the submit button outside of the iframe and did a
javascript submit of the iframe-contained form with the external button.
This seems to work well. Problem is, now i need a way for the window to
close upon successful login. How do I pass the data from the Iframe to the
external page so i can close the dialog? Am I doing this wrong? Let me
know. Thanks!!
 

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

Top