Sample Code: Basic Login , Roles authentication and Login attempt alerts.

Problem:  In most web based system one of the most commonly used process is user authentication and page access. This Login function is pretty typical here’s my example: Notice I set a bunch of session variables that I frequently use later in the application to display specific user information (such as dashboards etc.) <?php /////// ...