Skip to content

mhnobakht/AuthToken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AuthToken

Simple Authentication Token Manager System.

Installation

just include AuthToken.php into your document. and edit $domain and $salt

include_once "AuthToken.php";

Usage

Generate Token:

  • you can pass the username to this method (optional)
  • If you have already created a session called username, the username will be set automatically and does not need to be set separately.
AuthToken::generate();

Check Token:

  • You must use a username if you used it to Generate a token.
  • this method returns true or false
AuthToken::check();

Delete Token:

AuthToken::delete();

About

Simple Authentication Token Manager System.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages