Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2004, 12:17 AM
Authorized User
 
Join Date: Aug 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to vempativenu
Default Two Logins Using Forms Authentication

Two Logins Using Forms Authentication

Hi

I would greatly appreciate if anyone can suggest solutions to my current problem.

I need to have two Login forms for my Website. What I wanted is one can enter in my website
either through Login.aspx page or Admin.aspx Page.

According to Forms authentication we can use only one Url :

<authentication mode="Forms">
    <forms name="LoginForm" loginUrl="login.aspx"/>
</authentication>

and if I try to use two forms, it is not working, something like :

<authentication mode="Forms">
    <forms name="LoginForm" loginUrl="login.aspx"/>
    <forms name="AdminForm" loginUrl="Admin.aspx"/>
</authentication>

or

<authentication mode="Forms">
    <forms name="LoginForm" loginUrl="login.aspx,Admin.aspx"/
</authentication>


Is there any way to have two login pages, one for normal User & another for an Admin to the same ASP.NET web application
which uses Forms authentication.

The user should use either Login.aspx / Admin.aspx to login.

Please let me know for any suggestions / solutions.Thanks.

Bye
__________________
Bye
 
Old August 6th, 2004, 07:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You need to look up Roles based authentication.

http://www.codetools.com/aspnet/role...entication.asp

http://www.4guysfromrolla.com/webtech/121901-1.shtml


 
Old August 6th, 2004, 08:44 AM
Authorized User
 
Join Date: Aug 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to vempativenu
Default

Hi Stu

That will solve my problem.But how can we give role to all the users that are entering.Is there any ways roles created automatically.

Please let me know for any suggestions / solutions.Thanks.
Regards,
Venu

Bye





Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms Authentication thetway Classic ASP Basics 1 August 18th, 2005 05:55 PM
I have problem with Logins and forms denizci2000 Dreamweaver (all versions) 3 November 18th, 2004 01:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.