PHP Classes

File: auth.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Kevin Cadman  >  Authentication  >  auth.php  >  Download  
File: auth.php
Role: Example script
Content type: text/plain
Description: Included on desired "members" pages
Class: Authentication
A session and cookie based authentication class
Author: By
Last change:
Date: 12 years ago
Size: 486 bytes


Class file image Download
This file is included on "members" pages.
include 'common.php';
$auth = new Authentication($db);
$auth->CheckAuth()) {
If we made it here, it means the Authentication has failed.
So we header them back to login.php, and we set the failed variable.

When using Windows 2003 Server, PHP will not see the $_GET variable failed as SET if you
call login.php?failed. Hence why I've used failed=1.