Skip to content

hkk12369/simple-php-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

PHP Authentication Library

A simple PHP authentication library.

Example:

// To check if a user is logged in
include('auth.php');
if(!isLoggedIn())
	redirect('/login.php');
	
// super secret PHP code goes here
// To login a user
include('auth.php');
$username = $_POST['username'];
$password = $_POST['password'];
if(login($username, $password))
	redirect('/account.php');
	
echo "Login Unsuccessful";

About

A Simple Authentication Library For PHP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages