<authentication mode="Forms">
      <forms loginUrl="Default.aspx" name="FormsAuthCookie" protection="All">
      </forms>
    </authentication>在web.config 身份验证模式这样设置,Default.aspx.cs中没加载cookie("FormsAuthCookie"),但其他页面还是可以直接访问