473,387 Members | 3,750 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,387 software developers and data experts.

ASP login timeout and Form data...

I have a session timing out after 10 minutes. If the user clicks a
submit button to post some form data after the timeout has expired, they
are redirected to a login page...

Whats the standard practice for discovering what page they were
headed to and how can I make sure that the form data is posted to that
page so that no data is lost???

My assumption here is that the mechanism i'm using to redirect the user
to the login page, needs to pass the original destination as well as the
form data to the Login Form, and then the login form, once a proper
authentication is performed, would redirect to the original destination
allowing me to process the form data... ???

Am I even close; Is there any example of this process anywhere?
TIA,

D.
Jul 19 '05 #1
3 1735
I do the same thing on my web site. It has been a while since I looked at the code.

I believe that I do a redirect to the login page and then get the Request.ServerVariables ("HTTP_REFERER"). After authentication, I
navigate using http_referer.

Again, it has been a while and I don't have access to the source from my current location.

--
Al Reid

"It ain't what you don't know that gets you into trouble. It's what you know\\for sure that just ain't so." --- Mark Twain
"dnagel" <NO***********@hotmail.com> wrote in message news:uY**************@TK2MSFTNGP10.phx.gbl...
I have a session timing out after 10 minutes. If the user clicks a
submit button to post some form data after the timeout has expired, they
are redirected to a login page...

Whats the standard practice for discovering what page they were
headed to and how can I make sure that the form data is posted to that
page so that no data is lost???

My assumption here is that the mechanism i'm using to redirect the user
to the login page, needs to pass the original destination as well as the
form data to the Login Form, and then the login form, once a proper
authentication is performed, would redirect to the original destination
allowing me to process the form data... ???

Am I even close; Is there any example of this process anywhere?
TIA,

D.

Jul 19 '05 #2
Al Reid wrote:
I do the same thing on my web site. It has been a while since I looked at the code.

I believe that I do a redirect to the login page and then get the Request.ServerVariables ("HTTP_REFERER"). After authentication, I
navigate using http_referer.

Again, it has been a while and I don't have access to the source from my current location.


Awesome start... If anyone (or yourself Al) knows how to handle the
posted data in a similar manner (one that does not require recoding all
the other pages involved... just the login page would be nice) I'd be
ecstatic!

tia,

D.
Jul 19 '05 #3
D.

I use the "GET" rather than "POST" so that the Request.ServerVariables
("HTTP_REFERER") contains everything I need to handle the form data after
re-authentication. For some reason, I was storing that in a Session
variable and then redirecting to that link after login is completed.

I don't pretend to be a web wizard. so my approach is probably brute force,
but it seems to work. I am not sure how to handle it if you use the Post
method.

I hope this is of some help.

--
Al Reid
"dnagel" <NO***********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Al Reid wrote:
I do the same thing on my web site. It has been a while since I looked at the code.
I believe that I do a redirect to the login page and then get the Request.ServerVariables ("HTTP_REFERER"). After authentication, I navigate using http_referer.

Again, it has been a while and I don't have access to the source from my current location.


Awesome start... If anyone (or yourself Al) knows how to handle the
posted data in a similar manner (one that does not require recoding all
the other pages involved... just the login page would be nice) I'd be
ecstatic!

tia,

D.

Jul 19 '05 #4

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

Similar topics

3
by: Maellic | last post by:
Hi, The website I am working on is built with ASP.NET and connects to a SQL Server 2000 database. The web server and database are on the same machine. I have recently tried to modify the timeout...
11
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
4
by: VB Programmer | last post by:
I am created a ASPX web app. I am using forms authentication and it seems to be working well. After logging in I am redirected to a form that is a "Secure" directory. It's using data coming...
4
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...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
0
by: muder | last post by:
I have a standard Login ASP.NET 2.0 control on a login Page, a LoginName and LoginStatus controls on the member's page. once the user login successfully I am redirecting the user to Member.aspx...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
0
by: sandari | last post by:
The following code (web.config in Visual Studio 2005) is supposed to redirect a user to the appropriate Form depending on their role. However, regardless of the user's role, the only page...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.