How to know when login is successful working with the asp.net web application template <p>I created a new asp.net web application using the template that visual studio has. That type of project create a login out-of-the-box which I configured with the <code>aspnet_regsql</code> command to work with my database.</p> <p>Now, when someone logs into the application, I need to know whether or not the login was sucessful, so I can save in <code>Session['']</code> the user name among other things.</p> <p>I was expecting to find a method that returns true or false but instead in the Login.aspx.cs is just the <code>Page_Load</code> method and I don't understand how it works.</p> <p>I tried associated a onclick method that get the value of the <code>UserName</code> control, but obviously, that only works when the user log in for the first time, if the user check "Remember me next time" it won't work.</p>