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
12:33 am
53°F
Scattered clouds
High: 56°F
Low: 50°F
Wind: 5 mph