Hi,
I'm trying to build a web application that has similairites to a social networking website.
The web application will have users who will be able to view other users profile pages only if they are in the same group or 'network', if not it is closed for them.
So at the moment I'm trying to find out how to do this with no luck.
Does anyone have any links to any tutorials addressing this problem? Or any other links in general that would help me?
Soem code to illustrate how I think it would work.
private void Page_Load(object sender, System.EventArgs e)
{
try
{
// if they haven't logged in this will fail and we can send them to
// the login page
FormsIdentity id = (FormsIdentity)HttpContext.Current.User.Identity;
}
// exception
catch(Exception ex )
{
Response.Redirect(& ...
Go to the complete details ...