Authorized member only view details of my site. If member click a log out button means they have to be redirected to home page(Home.aspx). This is works correctly. Again member want to view the particular means they can access a page.. So this s my error.. can only help me, how to clear the session??
if (IsPostBack == false)
{
if (Session["log"] != null)
{
if (Session["log"].ToString() == "s")
{
}
else
{
Response.Redirect("UserLogin.aspx", false);
}
}
else
{
Response.Redirect("UserLogin.aspx", false);
}
}