pass parameter values 1 and -1 i don't exectly remember what value was this will block back functionality
second point on logout must use Session.Abondon(); or Session["UserProfile"] == null and check on your pages if Session["UserProfile"] == null; Response.Redirect("~/Login.aspx");
<script language="javascript" type="text/javascript">
window.history.forward(1);
</script></script>