![]() |
||
|
Home | Arts | Art Websites Let's look at the bottom half of the page first. This is fairly straight-forward HTML format. These aren't actually "true" HTML tags, but rather ASP.Net HTML controls that will render HTML page to the client browser (you can tell the difference because the runat="server" tag at on the control). This is a form that accepts a username and password. When the submit button is clicked, this page executes the code located in the subroutine named "Login". Inside of the Login method we use the FormsAuthentication object. The first line of the sub actually passes the entered username and password over to the object, which in turn compares this information to the values in the web.config file. If the values match, then the next line writes a cookie to the browser and redirects the user back to the original URL which was requested. The second value listed (false) tells the browser not to persist the cookie. So if this user authenticates, closes their browser, opens it again, and tries the secure URL - they will need to authenticate again. If the username and password entered did not match, an error message is displayed to the screen and the visitor is allowed to enter a new username and password to try again. This is a simple example and I don't cover any of the advanced configurations or options, but with this sample code, you should have a basis to work with if you want to impliment security in ASP.Net Article Source: http://casinoarticles.us
Please Rate this Article
Not yet Rated Click the XML Icon Above to Receive Art Websites Articles Via RSS!
|
For all players here is the best gaming start with No Deposit Free Casino Cash for easy gambling online debut
Since you've stopped by check this out Online Casinos Free Bonus for a surprising gaming online adventure.
Available now in reputable online casinos these Exclusive No Deposit Casinos will give an unforgettable fun play.
When it's about free gaming online, these Microgaming No Deposit Casino Bonus as well as Play Free Slots should not miss from your entertainment casino program.
It's time for to experience also 2012 Free Online Casinos since betting online free is the best casino practice any player needs.
|