Hallo, 

dann kann das daran liegen, dass die Gültigkeit des Cookies begrenzt
ist. Die nachfolgenden Zeilen verlängern die Gültigkeit um 5 Tage: 
 
string cookieStr = FormsAuthentication.FormsCookieName;
httpCookie cookie = Request.Cookies.Get(cookieStr);
if (cookie != null) {
cookie.Expieres = DateTime.Now.Add(TimeSpan.FromDays(5));
Response.Cookies.Add(cookie); }

Gruß

Bernhard

---- Original Message ----
Von: [EMAIL PROTECTED]
An: [email protected], 
Betreff: RE: [Asp.net] RE: [Asp.net] web.confg  authentication 
problem
Datum: Mon, 18 Jul 2005 10:05:18 +0200 (MEST)

>Ja ich werde immer wieder auf die login seite geschickt
>
>> --- Ursprüngliche Nachricht ---
>> Von: "Bernhard Brause" <[EMAIL PROTECTED]>
>> An: [email protected]
>> Betreff: RE: [Asp.net] web.confg  authentication  problem
>> Datum: Mon, 18 Jul 2005 09:55:51 +0200
>> 
>> Hallo "Unbekannt", 
>> 
>> was bedeutet, du kommst nicht mehr in deine Anwendung? Kommst du 
>noch
>> auf die Login.aspx - Seite?
>> 
>> Gruß
>> 
>> Bernhard
>> 
>> ---- Original Message ----
>> Von: [EMAIL PROTECTED]
>> An: [email protected], 
>> Betreff: RE: [Asp.net] web.confg  authentication  problem
>> Datum: Mon, 18 Jul 2005 09:46:25 +0200 (MEST)
>> 
>> >Hallo,
>> >
>> >ich habe folgendes Problem, ich habe eine Webananwendung mit User
>> >Authentification geschrieben. 
>> >
>> >Das heißt wenn der User sich einloggt wird ein Cookie geschrieben 
>und
>> >solange dies da ist muss er sich nicht mehr anmelden.
>> >
>> >Jetzt wollte ich die web.config auch richtig "machen", dass heißt:
>> >
>> ><authentication mode="Forms"> 
>> >
>> >      <forms  name=".ASPXAUTH"  loginUrl="login.aspx" >
>> >
>> >      </forms>
>> >
>> >    </authentication>
>> >
>> >
>> >Leider komme ich jedoch nach dieser Anwendung nicht mehr in meine 
>> >Anwendung,
>> >kann ich der web.config nicht einfach sagen, dass wenn mein 
>Cookie 
>> >da ist,
>> >er diese weiterleitung zur login.aspx nicht machen soll?
>> >
>> >_______________________________________________
>> >Asp.net Mailingliste, Postings senden an:
>> >[email protected]
>> >An-/Abmeldung und Suchfunktion unter:
>> >http://www.glengamoi.com/mailman/listinfo/asp.net
>> >
>> >
>> 
>> _______________________________________________
>> Asp.net Mailingliste, Postings senden an:
>> [email protected]
>> An-/Abmeldung und Suchfunktion unter:
>> http://www.glengamoi.com/mailman/listinfo/asp.net
>> 
>_______________________________________________
>Asp.net Mailingliste, Postings senden an:
>[email protected]
>An-/Abmeldung und Suchfunktion unter:
>http://www.glengamoi.com/mailman/listinfo/asp.net
>
>

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an