I would like to set up my web project with login.aspx and without based on the url entered.
lets say if someone access www.mywebsite.com/A - can make a search without login
but if accesses on www.mywebsite.com/B will be with login.
I work with the session as websiteID but that causes problem. websiteIDs are running into each other.
Reason of why I do that solution is B way is not public. it is to be used for some certain people other one is public.
Is this kind of bad implimentation ? should I split into 2 different web project? I didnt do that because everything is same but only
difference is the search results. therefore it is cumbersome to do 2 uploads and maintaine 2 projects.
web.config is another problem because i can't do asp.net membership provider solution while it affects also solution A.
what would be your suggestion?
Ps; I heard securing only specific directory in web.config. how can I do that? can this help?
EDIT: Both have same step aspx pages. after I login I get redirected to the default page which is used by solution A as well. only difference is querystring parameter. that's why securing default.aspx if it is the first search page for both, will affect both. Securing path in web.config won't work unless if it is possible to secure with query string parameters? Am I wrong?
thanks a lot for help.