Solved

Can Global.Application_Start() get the URL?

Posted on 2011-02-10
4
1,495 Views
Last Modified: 2012-05-11
How would the Application_Start() method in the Global.asax file get the URL the user used to load to the program?

OR

How might the Global object find the username and password used to log onto a releated website of ours? I want to use Single Sign On but since the browser has the cookie locked down, I need the other program or the browser somehow provide this information to Global.Application_Start() on the second website to load.

Thanks,
newbieweb
0
Comment
Question by:newbieweb
  • 2
  • 2
4 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 34864609
should be able to use :

System.Web.HttpContext.Current.Request.Url.AbsoluteUri.ToString();
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 34864624
For the username I think this will work :

System.Web.HttpContext.Current.User.Identity.Name
0
 

Author Comment

by:newbieweb
ID: 34864715
The first one worked, but the User was null in the second one.
0
 

Author Closing Comment

by:newbieweb
ID: 34864731
I'll deal with the User later. Thanks.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now