Re: FormsAuthentication Fails
From: Matjaz Ladava (matjaz_at__nospam_ladava.com)
Date: 06/21/03
- Previous message: Caroline Bogart: "FormsAuthentication Fails"
- In reply to: Caroline Bogart: "FormsAuthentication Fails"
- Next in thread: Caroline Bogart: "Re: FormsAuthentication Fails"
- Reply: Caroline Bogart: "Re: FormsAuthentication Fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 21 Jun 2003 16:57:20 +0200
Are you authenticating with username email@email.com ? You have to se the
username which was used in authentication to RefirectFrom......
-- Regards Matjaz Ladava, MCSE (NT4 & 2000) matjaz@ladava.com http://ladava.com "Caroline Bogart" <ctbogart@yahoo.com> wrote in message news:ca26a02d.0306210611.5e576eeb@posting.google.com... > Given the following code, I get two undesireable results. I cannot > pinpoint why I get one or the other. > > Either the login.aspx is not called at all, or if it is called, the > FormsAuthentication.RedirectFromUrl simply falls through to the next > line of code and fails to execute. > > <authentication mode="Forms" > > <forms > name="ASPXAUTH" > loginUrl="login.aspx" > path="/" > /> > </authentication> > <authorization> > <deny users="?" /> > </authorization> > > login.aspx.cs > Page_Load: > FormsAuthentication.RedirectFromLoginPage("email@email.com",true); > > restricted.aspx.cs > Page_Load > Response.Write("Restricted"); > > > At one point I got the bug to move from failing to call login.aspx.cs > to calling restricted.aspx.cs by removing the dot on the cookie name > (".ASPXAUTH"). > > Any help is greatly appreciated, > Caroline
- Previous message: Caroline Bogart: "FormsAuthentication Fails"
- In reply to: Caroline Bogart: "FormsAuthentication Fails"
- Next in thread: Caroline Bogart: "Re: FormsAuthentication Fails"
- Reply: Caroline Bogart: "Re: FormsAuthentication Fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|