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 /////// ...
Newark , US
7:14 pm
79°F
Broken clouds
High: 81°F
Low: 76°F
Wind: 20 mph