I get acquainted with ASP.NET webforms, the question is whether I did it correctly if the session is inactive and when I try to go to some page without authorization on all pages I have
if (Session["ID_USER"] == null) { Response.Redirect("index.aspx"); } Redirect to login page.
Page.User.Identity.IsAuthenticatedproperty (in one of the projects, Forms authorization). 2. You can configure it via web.config (I have it configured this way). And your version is similar to the "manual" - nick_n_a