try loginUrl="/login.aspx" or loginUrl="~/login.aspx"

On 8/23/05, Falls, Travis D (HTSC, CASD) <[EMAIL PROTECTED]> wrote:
> I am trying to use forms auth to secure a directory below my root.  The root
> directory is open for all and this is where my login.aspx form resides.
> Under root I have Admin/FileWatcher, Admin/LogViewer, and Admin/Password all
> of which I want secure with the only allowed user listed in the credentials
> section.  When I hit the secured page it tries to find the login page in the
> secured directory.  How do I tell it to back up to find it in the root?  I
> tried ../../login.aspx but that isn't allowed.
> 
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
>         <appSettings></appSettings>
>         <system.web>
>                 <compilation defaultLanguage="c#" debug="true" />
>                 <customErrors mode="RemoteOnly" defaultRedirect="error.aspx"
> />
>                 <authentication mode="Forms">
>                         <forms name="ASPXCOOKIERAFTAdmin" path="/"
> loginUrl="login.aspx" protection="All" timeout="60">
>                                 <credentials passwordFormat="Clear">
>                                         <user name="raftnet"
> password="PASSWORD" /> <!--this is in MD5 but made it clear for simplisity
> -->
>                                 </credentials>
>                         </forms>
>                 </authentication>
>                 <authorization>
>                         <allow users="*" />
>                 </authorization>
>                 <trace enabled="false" requestLimit="100" pageOutput="true"
> traceMode="SortByTime" localOnly="true" />
>                 <sessionState mode="InProc"
> stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
> source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
>                 <globalization requestEncoding="utf-8"
> responseEncoding="utf-8" />
>         </system.web>
>         <location path="Admin">
>                 <system.web>
>                         <authorization>
>                                 <deny users="*" />
>                                 <allow users="raftnet" />
>                         </authorization>
>                 </system.web>
>         </location>
> </configuration>
> 
> 
> *************************************************************************
> PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information.  If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited.  If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *************************************************************************
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


-- 
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12ha343uq/M=362335.6886445.7839731.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124824733/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to