CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 3/17/2008 1:10:05 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 37 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
AlohaMora
Asp.Net User
Multiple type of Users, with Multiple User login pages in one web application3/17/2008 1:10:05 PM

0/0

Hello Friends,

I have a situation in my website.
I am using form authentication in my web application where I have two type of users

Merchants & Customers

Merchants sign in from url
/msignin/default.aspx and after sign in it redirects to secure folder /merchants/welcome.aspx

and

Customers sign in from
/csignin/default.aspx and after sign in it redirects to secure folder /customers/welcome.aspx

Now I am confused on the point that I only have one login url in my web.config file and only one default url.

How can i make these two situations work on my same application.

Please help.

Aloha


Rajiv Sharma

MCSD.net, MCTS, MCSE
Personal Homepage
ramesh Addagatl
Asp.Net User
Re: Multiple type of Users, with Multiple User login pages in one web application3/17/2008 1:19:39 PM

0/0

i think that u can handle this by useing sessions 

create on session for Merchants & Customers

give code for Merchants = 0 and Customers = 1

try this

stupid
Asp.Net User
Re: Multiple type of Users, with Multiple User login pages in one web application3/17/2008 1:28:20 PM

0/0

I would only have one login page and let the built in permissions take care of deciding what to do. 

1    
2            if (User.IsInRole("merchant"))
3                Response.Redirect("merchant url");
4            else
5                Response.Redirect("buyer url");
  
"If God exists, I hope he has a good excuse."
-Woody Allen

DailyAtheistQuote
naspinski.net
AuctionConstructor
grbourque
Asp.Net User
Re: Multiple type of Users, with Multiple User login pages in one web application3/18/2008 7:38:09 AM

0/0

The above will work as one example and I use that in some situations.  In others it might be harder if a person might happen to be both a merchant and buyer.  One thing that I have not tried but you might want to try and it might save recoding.  In the directory that you want to secure with roles, you normally drop a web.config file that has the allow and deny users defined.  Try adding another line to web.config directory file saying which default sign in you want for that directory.  My understanding is that the web.config over rides the machine.config, and the directory over ride the root. 

 But I could be out to lunch on that.

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Macromedia Dreamweaver MX Dynamic Applications: Advanced Training from the Source Authors: Jeffrey Bardzell, Pages: 440, Published: 2003
Building Scalable Web Sites: Building, Scaling, and Optimizing the Next Generation of Web Applications Authors: Cal Henderson, Pages: 330, Published: 2006
Macromedia ColdFusion MX 7 Web Application Construction Kit: web application construction kit Authors: Ben Forta, Raymond Camden, Leon Chalnick, Angela C. Buraglia, Pages: 1440, Published: 2005
Macromedia Dreamweaver MX 2004: Training from the Source Authors: Jeffrey Bardzell, Pages: 512, Published: 2004
Web Database Applications with PHP and MySQL Authors: Hugh E. Williams, David Lane, David John Lane, Pages: 582, Published: 2002
Performance Analysis for Java Web Sites Authors: Stacy Joines, Ruth Willenborg, Ken Hygh, Pages: 425, Published: 2002
Professional Apache Tomcat 5 Authors: Vivek Chopra, Chanoch Wiggers, Inc NetLibrary, Pages: 598, Published: 2004
Java for the Web with Servlets, JSP, and EJB: A Developer's Guide to J2EE Solutions Authors: Budi Kurniawan, Pages: 953, Published: 2002
Web Bloopers: 60 Common Web Design Mistakes, and how to Avoid Them Authors: Jeff Johnson, Pages: 329, Published: 2003

Web:
User Authentication multiple user types - PHP User Authentication multiple user types - PHP Community and Forum ... I am having one login screen.i want the application to identify the ...
multiple user auto login - Computing.Net to have multi user support, one screen has an output to a television, ... and I' ve never researched multiple logins on any type of server ...
How To Set Up Multiple User Debugging in Internet Information ... This step-by-step article describes how to set up multiple-user debugging ... NET Web Application. 5. In the Location text box, type the URL of the remote ...
Multiple User Environments: Root and Login Sessions User processes in one login session do not have any inherent access to processes in ... You must remember that multiple instances of your application may be ...
Managing multiple user identities in authentication environments ... Sep 23, 2008 ... After registering with multiple web sites, the user must remember ...... The bus 136 represents one or more of any of several types of bus ...
multiple user Resources | TechRepublic The user can create his own categories and group his passwords in them. The application has a built in interface for maintaining multiple password data ...
Using Multiple User Logins and Different Terms for Search Fields ... Using Multiple User Logins and Different Terms for Search Fields. Options V ... One of the things we can do in our web application is SEARCH for TERMS. ...
Single Sign on for multiple web applications... - ng.asp-net-forum ... Implementing single sign-on to minimize Web user authentications With single ... a user must type their ID and password to sign into multiple applications. ...
Prevent Multiple Login in one PC - technical discussion ... Oct 6, 2008 ... Any one have an idea on how to prevent multiple login in one PC? ... When first time visiting my site, user will be redirected to login page.
Multiple user profiles in Firefox on Windows by jmayoff -- Revver ... Sep 17, 2008 ... mediaId=1184754" type="application/x-shockwave-flash" ... Setting Multiple Home Pages in Mozilla Firefox 2.0 ...

Videos:
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....
How To Break Web Software - A look at security vulnerabilities in web software Google TechTalks April 13, 2006 Mike Andrews Mike Andrews is a senior consultant who specializes in software security and leads the web application...
Introduction to Google Data Jeff Fisher walks through basic history and concepts behind the Google Data protocol. Visit the documentation for more information and list of availa...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming environmen...




Search This Site:










how to open pdf and word files

is it cache or something else

how to show master-detail data in an asp.net form?

retrieve user online ip address

bug: quicklink paths limited to 100 characters

issue if email attachment is above 100 kb (asp.net)

cant install msde

validation ??

maintaining 2 places in decimal calculation

virtualpathprovider question

how to increase the session time in dotnetnuke?

preinit in usercontrol

santry - resource directory manager

restricting webparts to webpartzones

whidbey final release

scroll in dnn ???

unable to login to dnn 2.1.2

printer icon in footer

css menu controls with images

metabuilders.com controls license?

automatic jump menus using a drop down list box

trying out forms authentication

firefox1/2 and ie 5.5 asking for windows authentication for no reason?

server.mappath error

where is the asp.net documentation?

asp.net configuration tool doesn't work

using port in asp.net

how to use roles in .net 3.5?

dnn 3.0.12 erd

file upload script error -"object reference not set to an instance of an object."

 
All Times Are GMT