473,382 Members | 1,749 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,382 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 2258
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......
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.