Last post May 24, 2017 01:38 PM by JBetancourt
Apr 02, 2012 01:05 PM|emil_bg|LINK
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?
thanks a lot for help.
May 24, 2017 01:38 PM|JBetancourt|LINK
add specific logic for your public locations; add in your web.config something like:
<location path="register.aspx"> //path here is path to your register.aspx page e.g. it could be ~/publicpages/register.aspx
<allow users="*"/> // this will allow access to everyone to register.aspx
Please remember to click "Mark as Answer" the responses that resolved your issue.