The Forms Authentication is a token based system that takes care of users authentication through a log-in form. When a user requests an ASP.NET web page that is not available for anonymoujs users the ASP.NET runtime verifies that the form authentication tocken is available.
You can find more explanations in my ASP.NET course. You can find its community free version available for free personal and academic usage at www.abelski.com