473,511 Members | 14,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form based authentication for a web aplication in subdirectory

hai

i have My Asp.net Project in C:\AspNetproject

AspNetproject have To sub Folder. 1) Forums and 2) users

Exe : C:\AspNetproject\Fourms
Exe : C:\AspNetproject:\users

The Fourms Foldder Having Topic.aspx,startThread.aspx , Replay.aspx

The users Folder having Login.aspx and Forget.aspx , newuser.aspx

i setting in web config File

<authentication mode="Forms">
<forms name=".AspAuth" loginUrl="~/User/Login.aspx"
protection="All" path="~/"
defaultUrl="default.aspx" timeout="30"></forms>
</authentication>
<location path="~/Forums/startThread.aspx" >
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>

The user not Login , the user not go to startThread .aspx File

how to set Form based authentication for a web aplication in
subdirectory

pls advice me

With regards
Solai

Mar 2 '06 #1
1 1737
DWS
Sivan,

Use the asp.net website configuration tool in visual studio.

Good Luck
DWS
"si*********@gmail.com" wrote:
hai

i have My Asp.net Project in C:\AspNetproject

AspNetproject have To sub Folder. 1) Forums and 2) users

Exe : C:\AspNetproject\Fourms
Exe : C:\AspNetproject:\users

The Fourms Foldder Having Topic.aspx,startThread.aspx , Replay.aspx

The users Folder having Login.aspx and Forget.aspx , newuser.aspx

i setting in web config File

<authentication mode="Forms">
<forms name=".AspAuth" loginUrl="~/User/Login.aspx"
protection="All" path="~/"
defaultUrl="default.aspx" timeout="30"></forms>
</authentication>
<location path="~/Forums/startThread.aspx" >
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>

The user not Login , the user not go to startThread .aspx File

how to set Form based authentication for a web aplication in
subdirectory

pls advice me

With regards
Solai

Mar 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4797
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
3
1580
by: Amil | last post by:
I must be missing something very simple. I've had a web site running for a long time (anonymous access). Web.config authentication is original (anyone gets in): <authentication mode="Windows"...
0
270
by: Dotnet Guy | last post by:
I have set up forms authentication for my web application. I have several subdirectories inside a main directory and I have forms authentication for each of my sub directories. In the logon page...
4
10548
by: Bennett Haselton | last post by:
If I add this to my web.config file: <authentication mode="Forms"> <forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" /> </authentication> I can configure the...
6
1463
by: Scott Natwick | last post by:
I would like to setup role-based security for my forms, however I'm having trouble working through an example I found. The example suggests creating a subdirectory for each role. I haven't been...
2
3554
by: ad | last post by:
I use authorization to Form in the root Web.config But now I want to disable the Form authentication when request some web pages How can I do?
1
1487
by: wdy | last post by:
I try to build a simple web aplication in ASP.NET in Visual Studio 5. When I run finished web aplication from inside VS5: localhost:1675/test2/Default.aspx everything is OK, works good. But when...
2
2369
by: wiktor.dzierzecki | last post by:
I try to build a simple web aplication in ASP.NET in Visual Studio 5. When I run finished web aplication from inside VS5: localhost:1675/test2/Default.aspx everything is OK, works good. But when...
1
2384
by: Benton | last post by:
Hi there, I want to have an unrestricted root directory and some protected subdirectories on my ASP.NET 2.0 application. I want each subdirectory to have its own Login.aspx page. The...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.