troubleshooting Question

ASP.NET 2.0 Membership Provider

Avatar of nutnut
nutnutFlag for United Kingdom of Great Britain and Northern Ireland asked on
.NET ProgrammingEditors IDEsASP.NET
14 Comments2 Solutions537 ViewsLast Modified:
Hi,

I am developing a website that Companies will sign up too.  Each company will have several employees that will have a UserId to view only their companies data.  

So for example:

CompanyA has EmpA1 and EmpA2
CompanyB has EmpB1 and EmpB2

EmpA1 logs on and I need a Session Variable to be populated with CompanyA
EmpA2 logs on and I need a Session Variable to be populated with CompanyA
EmpB1 logs on and I need a Session Variable to be populated with CompanyB
EmpB2 logs on and I need a Session Variable to be populated with CompanyB

Plan is I will then use the session variable within all the SQL statements so WHERE Company = [SessionVariable] to display the data to the logged on Employee.

What is the best way to accomplish this using ASP.NET Membership.  Is this the best way.  I have heard about subdomains, what are they and would they work for me?  


Regards

nutnut
ASKER CERTIFIED SOLUTION
Reecio

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros