---
title: "authentication mode=\"Forms\""
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/71159-authentication-mode-forms"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "andreas_lindh"
published: "2003-03-15T12:32:48.000Z"
updated: "2003-03-16T10:55:02.000Z"
replies: 1
views: 270
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/71159-authentication-mode-forms"
---

# authentication mode="Forms"

## #1 — andreas_lindh, 2003-03-15T12:32Z

Hur gör man för att skydda en hel mapp. Har provat med det här men det fungerar inte

```
<authentication mode="Forms">
			<forms name="AuthCookie" loginUrl="default.aspx" timeout="80" />
		</authentication>
	</system.web>
<location path="admin2/">
		<system.web>
			<authorization>
				<deny users="?" />
			</authorization>
		</system.web>
	</location>
```

Det går att komma åt alla aspx sidor även fast man inte är inloggad

Permalänk: https://www.webforum.nu/p/71159

## #2 — andreas_lindh, 2003-03-16T10:55Z

```
<location path="admin2">
		<system.web>
			<authorization>
				<deny users="?" />
			</authorization>
		</system.web>
	</location>
```

Behövde bara byta admin2/ till admin2

Permalänk: https://www.webforum.nu/p/981650

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/71159-authentication-mode-forms
