473,379 Members | 1,278 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,379 software developers and data experts.

Requesting Page??

Hello, I have made an aspx web application that is using Forms
Authentication. Each unsecure page has a custom user control on it that
will allow the visitor to login and enter secure pages. The question I have
is within the Web.Config file.

under <authentication mode="Forms">
there is "LOGINURL"
because there is not a specific LoginPage I want the user to be redirected
back to the requesting page they attempted the logjn from. Is there a trick
to make this happen? Thanks

Chuck
Nov 17 '05 #1
1 1222
e
Well, you could track the last known accessed unsecure page in a session
variable. Every time the user visits an unsecure page, you update the
variable to reflect that page. Then when the default loginurl is triggered
when the user tries to access a secure page (this will always happen if you
have forms auth turned on), you'll create a small login page that doesn't
really log in, it just forces a redirection to the page in the session
variable. That way, you get back to your unsecure page with user control
login.

But why? Normal forms authentication can work just fine with a default
loginurl specified in web.config.
"Charles A. Lackman" <Ch*****@cet.com> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...
Hello, I have made an aspx web application that is using Forms
Authentication. Each unsecure page has a custom user control on it that
will allow the visitor to login and enter secure pages. The question I have is within the Web.Config file.

under <authentication mode="Forms">
there is "LOGINURL"
because there is not a specific LoginPage I want the user to be redirected
back to the requesting page they attempted the logjn from. Is there a trick to make this happen? Thanks

Chuck

Nov 17 '05 #2

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

Similar topics

8
by: Keith Bowes | last post by:
I have a script for requesting HTTP resources and I want it to use HTTP compression (to reduce bandwidth), if possible. What's the best way to do this? I've tried using zlib functions but they...
5
by: Eric R. | last post by:
I was looking through php.net's help guide and a few other documents that I cam across on the web but I am still having trouble finding the information I am looking for. So I came here... Here...
5
by: Sens Fan Happy In OH | last post by:
I am currently working on a webpage that requires some rather extraordinary things to be done to it and I am not sure how best to go about doing this so I hope possibly someone can help me out on...
1
by: Glenn M | last post by:
I know how i can use request.userhostaddress to get the requesting ip address. is their any way i can get the requesting clients subnet mask also?
4
by: Tim Mavers | last post by:
I am using HttpWebRequest to request a page from my own site. It works great when the site isn't running under SSL, but it fails when I run I turn on SSL. I am assuming I need to include some...
6
by: wizard04frms | last post by:
I have an ASP.NET page on a remote server that takes about 60 seconds to load from my Windows XP Pro SP2 computer with IE 6.0, but my local copy opens instantly. If I load the page from my...
1
by: Aaron | last post by:
Not sure if this is the best spot to post this question, but I am not going to pay money to ask an installation question.... Anyways I am trying to install C# standard 2003 and it analyzes the...
0
by: Frederic Rentsch | last post by:
Some time ago I had managed to upload a small package to the Cheese Shop using the data entry template. Uploading is in two steps: first the text then the package file. When I had a new version it...
3
by: timchilds | last post by:
I have the following request URL in an ASPx page: http://crm/custom/fileviewer/default.aspx?NAME I want to be able to parse the requesting URL and pass NAME into a variable. Can anyone give...
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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?

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.