Can Global.Application_Start() get the URL?

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
newbiewebSr. Software EngineerAsked:
Who is Participating?
 
Paul JacksonConnect With a Mentor Software EngineerCommented:
should be able to use :

System.Web.HttpContext.Current.Request.Url.AbsoluteUri.ToString();
0
 
Paul JacksonSoftware EngineerCommented:
For the username I think this will work :

System.Web.HttpContext.Current.User.Identity.Name
0
 
newbiewebSr. Software EngineerAuthor Commented:
The first one worked, but the User was null in the second one.
0
 
newbiewebSr. Software EngineerAuthor Commented:
I'll deal with the User later. Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.