Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Virtual Directory doesn't recognize auth ticket!

Reply
Thread Tools

Virtual Directory doesn't recognize auth ticket!

 
 
Alioop via .NET 247
Guest
Posts: n/a
 
      05-05-2004
Someone, please help!

I have a website is using forms authentication. A user must beauthenticated to access any part of the website. This workscorrectly except in a subdirectory that is actually a virtualdirectory set up in IIS. Users can never correctly access thefiles in the virtual subdirectory, whether authenticated or not,so it seems as if the subdirectory doesn't recognize the authticket.

Here is my web.config file:
-------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
>

<system.web>
<pages enableViewState="false"/>
<compilation defaultLanguage="c#" debug="true" />
<customErrors mode="RemoteOnly" defaultRedirect="/error.aspx"/>

<!-- AUTHENTICATION -->
<authentication mode="Forms">
<forms name="ProtectMe"
loginUrl="/login.aspx"
protection="All"
timeout="60"
path="/"
slidingExpiration="true">
</forms>
</authentication>

<!-- AUTHORIZATION -->
<authorization>
<deny users="?" />
</authorization>


<!-- APPLICATION-LEVEL TRACE LOGGING -->
<trace enabled="false" requestLimit="10" pageOutput="false"traceMode="SortByTime" localOnly="true" />


<!-- SESSION STATE SETTINGS -->
<sessionState
mode="SQLServer"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=xxx;userid=xxx;password=xxx"
cookieless="false"
timeout="20"
/>

<!-- GLOBALIZATION -->
<globalization requestEncoding="utf-8"responseEncoding="utf-8" />
</system.web>
</configuration>
----------------------------------


If I add this to the web.config file, users can always get in.
<location path="vdocs">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

What I would like is for users to be allowed access only whenthey are authenticated, as with the rest of the site. Doesanyone have any tips?

I've also tried <deny users="?" />, <allow users="?" />, <denyusers="*" />

Any help is greatly appreciated.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>9RY45k2IEka7tYAdKrsfvA==</Id>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows auth and forms auth Smokey Grindle ASP .Net 1 06-08-2006 03:14 PM
Windows Auth, but Forms Auth for one page? =?Utf-8?B?ZGhucml2ZXJzaWRl?= ASP .Net 1 01-08-2005 05:50 PM
Configuring Windows Auth & Forms Auth in Asp.Net Chris Mohan ASP .Net Security 2 04-29-2004 06:46 AM
Configuring Windows Auth & Forms Auth in Asp.Net =?Utf-8?B?Q2hyaXMgTW9oYW4=?= ASP .Net 0 04-28-2004 06:11 PM
container-auth vs servlet-auth role-checking? Mark Chai Java 1 10-01-2003 06:30 PM



Advertisments