Hi Pat,

die Seiten f�r die login Page kannst Du vorgeben.

   <system.web>
        <authentication mode="Forms">
            <forms name="NetAuth" loginUrl="login.aspx" protection="All"
timeout="60" path="/" />
        </authentication>
   </system.web>

    <location path="ProtectedAccount.aspx">
        <system.web>
            <authorization>
                <deny users="?" />
            </authorization>
        </system.web>
    </location>

MfG
J. Schwalenberg
____________________________________________
www.udexnet.com
eMail: [EMAIL PROTECTED]
____________________________________________
High Level ASP.Net Navigation - UDEX Pro Menu .Net
----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 12, 2004 12:38 PM
Subject: [Asp.net] Forms authentication


hallo,

versuche einen teil meines webs mittel forms auth zu sch�tzen, kann jedoch
entweder immer nur das gesamte web mittels login sch�tzen oder ich gelange
immer wieder auf die login seite nach der anmeldung. irgendwie steckt da der
wurm drin und b�cher und google treffen teilweise widersp�rchliche aussagen
zum handling der forms auth.

folgend meine webconfig f�r das haupt web, da zu sch�tznede verzeichnis
heisst /cms....

jetzt habe ich f�r mein hauptanwendung session cookielos eingestellt. die
forms auth braucht aber cookies. scheint wohl zu funktionieren die kombi,
aber ist das auch richtig so?
beim versuch einen web.config im cms/ verzeichnis selber abzulegen, kam bei
aufruf der startseite immer eine fehlermeldung.

was ist hier falsch??? oder eine GUTE quelle tipp zu forms.auth...

gr�sse
pat

<configuration>

 <location>
  <system.web>
   <authentication mode="Forms">
    <forms name=".cmsauth" loginUrl="cms/login.aspx" protection="None"
timeout="20" path="/">
       </forms>
   </authentication>
   <authorization>
    <deny users = "?" />
    <allow users="XXXX" />

   </authorization>
  </system.web>
 </location>

<appSettings>
   <add key="ConnKunde" value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\XXXXX; Jet OLEDB:Database Password=XXXX" />
 </appSettings>

  <system.web>
        <compilation debug="true"/>
  <sessionState mode="InProc" cookieless="true" timeout="30" />
     <customErrors mode="Off"/>
    </system.web>
 </configuration>

_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net



_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an