Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6468647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:54:33+00:00 2026-05-25T05:54:33+00:00

I have a web application where users can register. Each user will get a

  • 0

I have a web application where users can register. Each user will get a subdomain to their account. and each subdomain will be kind of unique but use the same web application as every one else.

The application is .net and i run it on a iis 2003 or 2008 (not desided yet.) and I am aiming for about 1000 users. ( 1000 subdomains)

For example:

user1.mydomain.com
user2.mydomain.com
user3.mydomain.com   alias sub.something.com

it is not always possible to get the account ID from the subdomainname as you see bacause of the aliases of the domains.

so I was thinking about different approaches.
1: for every page request a database lookup is performeed and the Id of the account is returned. drawbacks? extra database communication. And the table containing all the domainnames for all the users, e text search in the database every time a page is requested does not sound as a good idea.

2: as number 1, but accountId is saved as session. but what happens with 1 thousend accounts, and every account has 1000 viewers, large amount of memory is used??

3:I dont know if this one is possible, but i think its a good one…
I was thinking about creating all the subdomains..
User1., user2., user3….
And the alias for each subdomain is saved within IIS.
Within each folder for all the domains, i create an ID file. just containing the ID of the user as:

id.aspx
-----
accountID = ##;
-----

And after that i want all the files for the application to be virtual included into each subdomain.

Explanation:
Each subdomain contains the following files:

id.aspx
file1.aspx virtual file from web.mydomain.com
file2.aspx virtual file from web.mydomain.com
File3.aspx virtual file from web.mydomain.com
....

and file1…3 is somewhere else on the IIS.
Is this possible?

So please, is there someone here that could help me with this problem?
What should I do?
I Guess this is a common “problem” that many persons have solved in a good whay.

Thanks for your time reading this.

Best Regards
Matte

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T05:54:33+00:00Added an answer on May 25, 2026 at 5:54 am

    To me, #3 can be challenge from management perspective. I will rather go with approach similar to #2 – your mappings are stored in database. When user logs in, look up is performed and the account id is cached in session state. If you are already using session state for something else then adding this bit information is not really a overhead. Otherwise, you can consider other options for caching this information – for example, it could be put into the cookie (of course you have to add mechanism such as encryption/check-sum to avoid tampering). You can also make account id as part of user identity (by pushing it into authentication cookie which is anyway made tamper-proof by ASP.NET runtime).

    Considering that you have 1000 users, I will most probably choose to build in-memory look up table (store the dictionary in ASp.NET cache or static variables), considering 10 aliases per user, it will not have more than 10000 entries – build the table at the time of application start and start of each request, do a look-up and get the account id and store it into HttpContext so that it’s available hence forth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application with users and their documents. Each user can have
I want to build a web application where users can register and have a
I have an interactive web application powered by jQuery where users can manipulate visual
Currently I have a web application where a user can use dropdown lists to
I have a freelance web application that lets users register for events. In my
I have a web application where users can add recommendations , post comments etc
I'd like the users of my web application to not have to register a
We have a web application where users can login. Now what we want is
I have a web application in which one of the workflows, users can download
I have a web application where users can create topics and also comment on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.