Scripts.com - Get the best scripts NOW!
HotScripts.com - Over 10 web rings.
more links...
Ron Paul 2008 - Hope for America
    
Index    News    Downloads    E-Mail me    Forum  
    

LOGIN.ASP

Make ASP generated web content available only to you! This is the ASP version of login.php. isLogged() returns true if the cookies named UserName and PassWord are the same as the variables UserName and PassWord, the first 2 paramters of the function. If not, it displays the content of LogInPage, the 3rd paramenter. Unlike the PHP counterpart, all parameters should be passed to this ASP version of isLogged(), instead of ommitting LogInPage, you should pass "" an empty string.



The main thought behind this was to display the same login for all my admin pages, without have to repeat the same HTML code. Another purpose for this code was to keep SQL queries, and other back-end code from being executed without permission.

see also :  login.php, login.asp, mysql-login.php, mysql-login.asp, user-login.php