Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For the username I think this will work :

System.Web.HttpContext.Current.User.Identity.Name
Avatar of curiouswebster

ASKER

The first one worked, but the User was null in the second one.
I'll deal with the User later. Thanks.