Click here to Skip to main content
16,011,170 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi Guys, I have been developed one web application. it can work only perticular locations. for examples Admin module.I am developing Hiring module for my Organizations. It will Access only for my location and where my locations are located that places also will be working.

Please give me reply.
Posted
Updated 24-Sep-13 3:51am
v2
Comments
joshrduncan2012 24-Sep-13 9:35am    
not a question...
Sergey Alexandrovich Kryukov 24-Sep-13 9:38am    
Oh, I just noticed that, thank you.
Anyway, I answered, please see. :-)
—SA

1 solution

It's not "organizations", really, unless you add the concept of "organization" in your authentication data (for example, organization-user-password is entered in a log in form).

This is not how it's usually work. Usually, role-based security is used, but it can include your concept of "organization". When someone authenticates with your site, you have only the user name and, usually, cryptographic hash of the user's password. First, you find user data and check up if a password is correct. If it is, you can use the user's personal record on some pages or every page loaded in user's session. A reference to user's "organization" (department, roles, and whatever else). On the server side, you may need to present different content on the page, depending on the current user's role. One particular method of processing would be just redirecting a "wrong" user to some other page.

Please see:
http://msdn.microsoft.com/en-us/library/shz8h065.aspx[^],
http://www.asp.net/web-forms/tutorials/security/roles/role-based-authorization-cs[^].

—SA
 
Share this answer
 
v2
Comments
joshrduncan2012 24-Sep-13 9:41am    
Just +5'd ya. :)
Sergey Alexandrovich Kryukov 24-Sep-13 9:44am    
Thank you.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900