In the default page or the login page of your website create a session variable as Session["UserId"].
Session["UserId"]=username;
Then on the Page_Load of every other page in the website or in the Page_Load of master page check if this variable has the value, else redirect the user to the Default page
if(Session["UserId"]==null)
{
Response.Redirect("Default.aspx");
}