473,654 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 <authenticati on 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 1241
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.co m> wrote in message
news:uu******** ******@TK2MSFTN GP09.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 <authenticati on 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
2315
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 always return FALSE. And I've tried to use the zlib wrapper, which works but makes non-compressed resources take longer. TIA.
5
1710
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 is my question: I was wondering if there was a way to load information into a page without using SQL or anything fancy. Say I had a page setup with the body of the page being pulled in with a 'require' command and a menu bar on the left. (This...
5
1471
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 this. The page needs to look as much like a particular sales flyer as possible. This flyer has two dragonflies in the upper left and right corners of the page. At the bottom of the page then is a very elaborate JPG of a lilypads and various...
1
2465
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
1399
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 sort of certificate with the request? Is this the certificate that is normally included in the browser? We are using a standard site certificate from Verisign (which resides on the server), what do I need to put in my client?
6
1537
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 Win2000 SP4 computer with IE 5.5, it loads instantly as well. Controls on the page are populated from an Access database. I have tested the page by putting response.write(Now() & "<br>") in
1
1568
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 system and then say I need to install some prerequisite stuff. So I click on the link that says that and then I get a message the that some application is already requesting a reboot. This is a brand new Compaq laptop purchased yesterday. I have...
0
1087
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 went like this: The new text made a new page, but the new file went to the old page. The old page then had both files and all attempts at uploading the new file to the new page failed with the error message that a file could not be uploaded if it...
3
3609
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 me the code to do this? Cheers
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8593
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.