I found a solution that I use in my master page
if (Membership.GetUser() != null)
.....
else Response.Redirect("Login.aspx")
and codebehind for logout button:
FormsAuthentication.SignOut();
Response.Redirect("Login.aspx");
Thanks for your help!