473,327 Members | 2,012 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,327 software developers and data experts.

Retain post data after login redirect

I have a dynamic form that is managed entirely on the browser side
(that is fields are added and removed without a postback). The page the
form is on requires a login.

When the user submits the form, the session login may have been lost
due to a timeout - can anyone suggest a mechanism for retaining the
form data and automatically posting after redirection from the login
page? Storing the data in a cookie isn't practical (too many fields, to
much data).

Nov 19 '05 #1
4 2255
Hello Alfred, Is using Windows forms an option? I think your best bet would
be to change the web.config so the session wasn't expired so quickly. Then
you would avoid the issue in the first place.

I think the act of submitting the form and having the .NET framework reject
your POST will inherently lose the data. I don't know of any way of posting
a form to two different "actions" (destinations).

If your thing is all client side, what about having the client side code
refresh the session periodically by requesting some trivial item - I really
know nothing about client side programming - I think it shows.

What about your submit popping up a window that trys to post the data, It's
a lot of stuff to put into the window but you could try it with a trivial
example to see if it would work first.

JT
"Alfred Salton" <al***********@hotmail.com> wrote in message
news:200502141222172254%alfredsalton@hotmailcom...
I have a dynamic form that is managed entirely on the browser side (that is
fields are added and removed without a postback). The page the form is on
requires a login.

When the user submits the form, the session login may have been lost due
to a timeout - can anyone suggest a mechanism for retaining the form data
and automatically posting after redirection from the login page? Storing
the data in a cookie isn't practical (too many fields, to much data).

Nov 19 '05 #2
Hello Alfred, Is using Windows forms an option? I think your best bet would
be to change the web.config so the session wasn't expired so quickly. Then
you would avoid the issue in the first place.

I think the act of submitting the form and having the .NET framework reject
your POST will inherently lose the data. I don't know of any way of posting
a form to two different "actions" (destinations).

If your thing is all client side, what about having the client side code
refresh the session periodically by requesting some trivial item - I really
know nothing about client side programming - I think it shows.

What about your submit popping up a window that trys to post the data, It's
a lot of stuff to put into the window but you could try it with a trivial
example to see if it would work first.

JT
"Alfred Salton" <al***********@hotmail.com> wrote in message
news:200502141222172254%alfredsalton@hotmailcom...
I have a dynamic form that is managed entirely on the browser side (that is
fields are added and removed without a postback). The page the form is on
requires a login.

When the user submits the form, the session login may have been lost due
to a timeout - can anyone suggest a mechanism for retaining the form data
and automatically posting after redirection from the login page? Storing
the data in a cookie isn't practical (too many fields, to much data).

Nov 19 '05 #3
This form may actually be filled offline as an IE .hta application, or
a Firefox extension, so there might be no existing session to keep
alive.

Windows forms isn't an option - this a web application, rather than a
Windows application (read multi-platform).

Nov 19 '05 #4
This form may actually be filled offline as an IE .hta application, or
a Firefox extension, so there might be no existing session to keep
alive.

Windows forms isn't an option - this a web application, rather than a
Windows application (read multi-platform).

Nov 19 '05 #5

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

Similar topics

3
by: David E. Smith | last post by:
I want to redirect input from one page to another, but it's POST content. If it were GET, I could just do something like: header("Location: /new/form.php?a=1&b=2") I can't rewrite the...
6
by: brian_mckracken | last post by:
This might not be the right group for this question, since its kind of a pure html question... Given the html construct: <form action='index.php?expand=0,10000' method='post'> Email: <input...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
0
by: Alfred Salton | last post by:
I have a dynamic form that is managed entirely on the browser side (that is fields are added and removed without a postback). The page the form is on requires a login. When the user submits the...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
5
by: Tyler | last post by:
I am developing an application which will allow me to automatically sign into an external website. I can currently do a screen scrape using HTTPWEBREQUEST. However I want to just redirect to the...
0
by: barrybevel | last post by:
Hi, I'm trying to login to the www.vodafone.ie website using HttpWebRequest. It works fine with IE/Firefox and the .NET Web Control too, just not with my code. I think it's a redirect 302...
1
by: yarikcom | last post by:
I've got a page login.asp that depending on ther sending method displays a login page or validates the user. if GET method used it shows the login page. if POST method used it validates the user and...
6
by: rpcchandu | last post by:
Hi Coders, I have to redirect from my server to the different server page by simulating the POST method submit from the Controller file, I tried using post_via_redirect, but could not succeed......
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.