I am writing a content management system where the user can create multiple sites inside the app. Each site can have authentication. I am trying to figure out how to have multiple authentication cookies for the app without having to add each one to the web.config. I need to create them programmatically when the application starts up. Is this possible?
Ex.
SecureApp: http://localhost/CTMS – Needs authentication to update sites
CustomSite: http://localhost/CTMS/Custom1 – Needs authentication separate from SecureApp
Hopefully this makes sense.
You can do this –
Then you can write code to check incoming requests to see if they have this cookie –