Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Authentication between site and its virtual directory

Status
Not open for further replies.

LV

Programmer
Nov 1, 2000
1,184
US
I have a site that uses FormsAuthentication. I have a virtual directory on this site, that is configured as a vitrual application and has it's own Web.config file in it. What I'm trying to achive: once a user is authenticated on to the "main" site, if he clicks a link redirecting to a page located in that virtual directory (i.e. from: to then the user is automatically authenticated into the directory as well. No success so far, Request.IsAuthenticated=false while on page, coming from <authentication mode="Forms"> in both Web.config in the root and directory and <identity impersonate="true" /> in /dir/Web.config. I thought that the cookies set by FormsAuthentication could be read on the same domain, am I missing some other settings? Any ideas or references will be appreciated. Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top