473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Saving Form Data Across a Session Timeout

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
Nov 18 '05 #1
3 2713
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" <sp************@thenullset.com> wrote in message
news:OY****************@TK2MSFTNGP14.phx.gbl...
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

Nov 18 '05 #2
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" <sp************@thenullset.com> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...
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" <sp************@thenullset.com> wrote in message
news:OY****************@TK2MSFTNGP14.phx.gbl...
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


Nov 18 '05 #3
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:%2****************@TK2MSFTNGP09.phx.gbl...
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" <sp************@thenullset.com> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...
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" <sp************@thenullset.com> wrote in message
news:OY****************@TK2MSFTNGP14.phx.gbl...
> 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
>



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ani | last post by:
Hi, I need to carry the user input across pages and then at the end insert all the values into the DB. How do I best accomplish this task in ASP.Net. I am a novice , please give me some simple...
1
by: Ben S | last post by:
we have a webapp using form authentication, and the time out is set at 120 minutes, so whenever a session is idle for > 120 minutes or so, it will make the user sign in again. This seems to be...
3
by: RCS | last post by:
I have an app that I have different "sections" that I want to switch back and forth from, all while having the server maintain viewstate for each page. In other words, when I am on Page1.aspx and...
4
by: Peter Bremer | last post by:
Hi all, I've got a form which lists all members of a club, with checkboxes to select them. The form offers functions to delete selected members, send email, etc. Now I want write some code to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.