A short PHP script to protect a page form the unauthentificate access. The script checks Username and Password (a function icludes to the beginning of each page). If the authentification was successfull than a page continue to load else the script redirect users to given url after showing an error message. The information about a successfully authentification keeps with the session variables. |