Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Two Logins within the same site

Reply
Thread Tools

Two Logins within the same site

 
 
Liming
Guest
Posts: n/a
 
      04-12-2006
Hello,

I have a portal in ASP.NET 2.0 which has a login page for users and a
sepearte login for admin.

the folder structure looks like so..

/users/
profile.aspx
login.aspx

/admin
controlpanel.aspx
login.aspx


The reason I have two sepeparte login pages is because

1) Designer have very different designs for each. Part of the requirement
2) Depending on which login.aspx is accessed, we need to redirect by default
to it's coressponding default page. (user goes to profile.aspx if no
returnurl is detected and admin goes to controlpanel.aspx)


so my question is in my web.config, how do I configure this for
authentication mode="forms"? currently if I set
loginurl="/users/login.aspx". that's obviously not an option because if they
try to access an admin page within the admin folder, I needed to redirect
them to /admin/login.aspx"

If there is only one page say /login.aspx, then everyting is simple. i do

loginurl="login.aspx"

and in my code behind, I can check if a User.IsInRole("Admin"), redirect to
"controlpanel.aspx", else redirect to "profile.aspx". But that's not the
case unforuntately.

thanks. any suggestions is greatly appreicated.





 
Reply With Quote
 
 
 
 
Luke Zhang [MSFT]
Guest
Posts: n/a
 
      04-12-2006
Hello,

I think we cannot tell if someone is a common user or an administrator,
before he actaully input his account and password. A exclusive login is
still required here. You may argue this with your designer: since we cannot
tell if he is a admin when the first user interface is dispaly, how can we
diaplay different content? How do you think it?


Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
 
genc ymeri
Guest
Posts: n/a
 
      04-16-2006
>>how can we diaplay different content? How do you think it?
What a MS support..... impressed !!!


"Luke Zhang [MSFT]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I think we cannot tell if someone is a common user or an administrator,
> before he actaully input his account and password. A exclusive login is
> still required here. You may argue this with your designer: since we
> cannot
> tell if he is a admin when the first user interface is dispaly, how can we
> diaplay different content? How do you think it?
>
>
> Luke Zhang
> Microsoft Online Community Support
>
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
>
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Wireless Logins on Same laptop =?Utf-8?B?cmlnaHRjb2FzdG5vdmljZQ==?= Wireless Networking 3 10-11-2006 07:12 PM
Two Different FormsAuth Logins for Same Application =?Utf-8?B?QWxleCBNYWdoZW4=?= ASP .Net 1 09-11-2006 02:12 PM
Can two Web User Control have same File (.ascx) name within projec =?Utf-8?B?TWlsYW5C?= ASP .Net 3 06-27-2005 09:43 PM
how to prevent multiple logins from the same user anoj ASP .Net 6 12-30-2004 09:59 PM
AS5300: Preventing multiple logins of the same account Pavlov Cisco 0 11-23-2004 04:39 PM



Advertisments