die funkt (muss im root stehn):
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"
/>
<authentication mode="Forms">
<forms name=".name." loginUrl="cms/login.aspx" timeout="90"
protection="All">
<credentials passwordFormat="Clear">
<user name="name" password="passwort"/>
</credentials>
</forms>
</authentication>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
<location path="cms">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
lg,
oskar
----- 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