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
1:55 pm
35°F
Scattered clouds
High: 37°F
Low: 33°F
Wind: 14 mph