Connecting Tech Pros Worldwide Forums | Help | Site Map

Saving Form Data Across a Session Timeout

Mike
Guest
 
Posts: n/a
#1: Nov 18 '05
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



Mike
Guest
 
Posts: n/a
#2: Nov 18 '05

re: Saving Form Data Across a Session Timeout


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?

"Mike" <spamrepository@thenullset.com> wrote in message
news:OYIi%23y7rEHA.3608@TK2MSFTNGP14.phx.gbl...[color=blue]
> 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
>[/color]


Biju
Guest
 
Posts: n/a
#3: Nov 18 '05

re: Saving Form Data Across a Session Timeout


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


"Mike" <spamrepository@thenullset.com> wrote in message
news:e78xyC8rEHA.1232@TK2MSFTNGP11.phx.gbl...[color=blue]
> 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[/color]
closes[color=blue]
> the modal window. Anyone ever done something like this before?
>
> "Mike" <spamrepository@thenullset.com> wrote in message
> news:OYIi%23y7rEHA.3608@TK2MSFTNGP14.phx.gbl...[color=green]
> > Hello:
> >
> > I was not able to find a regular ASP group, so I posted this here[/color][/color]
instead.[color=blue][color=green]
> >
> > 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[/color][/color]
that[color=blue][color=green]
> > data is now lost.
> >
> > I need a way to save this post or get data (depending on the form they[/color][/color]
are[color=blue][color=green]
> > submitting) somehow and to let the user re-log in and have the first[/color][/color]
page[color=blue][color=green]
> > they go to be the form they requested with all of the data already[/color][/color]
filled[color=blue][color=green]
> > 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[/color][/color]
simple[color=blue][color=green]
> > 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[/color][/color]
timed[color=blue][color=green]
> > 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
> >[/color]
>
>[/color]


Mike
Guest
 
Posts: n/a
#4: Nov 18 '05

re: Saving Form Data Across a Session Timeout


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!!

"Biju" <msdn.microsoft.com> wrote in message
news:%23ml23XCsEHA.3452@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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
>
>
> "Mike" <spamrepository@thenullset.com> wrote in message
> news:e78xyC8rEHA.1232@TK2MSFTNGP11.phx.gbl...[color=green]
>> 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[/color]
> closes[color=green]
>> the modal window. Anyone ever done something like this before?
>>
>> "Mike" <spamrepository@thenullset.com> wrote in message
>> news:OYIi%23y7rEHA.3608@TK2MSFTNGP14.phx.gbl...[color=darkred]
>> > Hello:
>> >
>> > I was not able to find a regular ASP group, so I posted this here[/color][/color]
> instead.[color=green][color=darkred]
>> >
>> > 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[/color][/color]
> that[color=green][color=darkred]
>> > data is now lost.
>> >
>> > I need a way to save this post or get data (depending on the form they[/color][/color]
> are[color=green][color=darkred]
>> > submitting) somehow and to let the user re-log in and have the first[/color][/color]
> page[color=green][color=darkred]
>> > they go to be the form they requested with all of the data already[/color][/color]
> filled[color=green][color=darkred]
>> > 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[/color][/color]
> simple[color=green][color=darkred]
>> > 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[/color][/color]
> timed[color=green][color=darkred]
>> > 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
>> >[/color]
>>
>>[/color]
>
>[/color]


Closed Thread


Similar ASP.NET bytes