i have a publishing site which can be viewed publicly, i also have a subsite in which i want to control the user who view the subsite. So my idea was to create a login form webpart and connect the login to SQL Database. Then im going to create another webpart and insert the webpart in every page of the site, that will check if there is a validated cookie or not. if it has a validated cookie, you can view the page, if no validated cookie, you cannot view the page.
Please suggests other approach to do this. If you think this is the best way, please provide any link or URL that can help me achieve this. Thanks
cal_bonjovi