Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: web.config problem


Message #1 by Hery <s_hery@e...> on Thu, 7 Mar 2002 17:47:01 +0700 (JAVT)
Regarding the login page problem. This is a sniplet from one of my
web.config pages:
		<authentication mode=3D"Forms">
			<forms loginUrl=3D"ShopLogon.aspx"
name=3D"ShopLogon" />
		</authentication>
		<authorization>
			<deny users=3D"?" />
		</authorization>

Did you remember to include the authorization part? This states that an
anonymous user is denied access to any page and will therefore be
forwarded to the login page.

(Ps. My tip of the day: If you make several web applications with form
login, use different values for the name attribute in the form tag. If
you want to keep separate logins that is.)

Magnus
--
| Magnus Akselvoll   | +xx xxx xxx xxx           |
| Systems consultant | makselvoll@h... |
| HolteGroup SA      | Malaga - Spain            |
                                                --

-----Original Message-----
From: Hery [mailto:s_hery@e...]
Sent: jueves, 07 de marzo de 2002 11:47
To: ASPX_Professional
Cc: ASPX_Professional
Subject: [aspx_professional] web.config problem


I had a problem. I built a login form that user must login first before
they can take more action in my site. And i use ASP.NET Form
authentication and i set in web.config, but i can't see the result. If i
go the page that need authentication that is not redirect to login.aspx
form. The second i use CustomError for redirect user if my page is not
available but the condition is the same, that's no action.

I see the documentation of ASP.NET and IBuySpy for that.

So, i wanna ask if there are any condition that i must fulfill beside
change the web.config setting.

thank you for helping me.

HERY


$subst('Email.Unsub').

  Return to Index