Ratings | | Unique User Downloads | | Download Rankings |
Not enough user ratings | | Total: 724 | | All time: 4,584 This week: 63 |
|
Description | | Author |
This package can login users and start sessions in a MySQL database.
It can can start logged user sessions with records stored in a MySQL database accessed using MySQLi.
The package scripts can perform other operations to manage user accounts like registering users, verify the user email address, recover lost user passwords, login and logout users. | |
|
|
Innovation award
Nominee: 4x |
|
Recommendations
Example
<?php
define('INC_FILES', true); // for security
require_once('account/config.php');
require_once(SLS_DIR . '/global_sls.php');
if($sls->is_login() === true ) {
echo '<a href="account/logout.php">logout</a> <br/>';
echo '<h2>session:</h2><br/>';
echo 'user id : ' . $sls->session->user_id . '<br/>';
echo 'username : ' . $sls->session->username . '<br/>';
// seve session example :
// $sls->session->name = 'value'
//
// get session
//
// echo $sls->session->name;
//
//
// redirect example :
//
// $sls->redirect(WEB_URL . '/example.php');
//
//
// check user is login
//
// if($sls->is_login() === true ) {
// // user login
// } else {
//
// // user not login
//
// }
//
} else {
$sls->redirect(WEB_URL . '/login.php');
exit;
}
|
Details
phpsls
PHPSLS is a Secure Login System for any website
features
-
Secure Session
-
CSRF Tokens
-
SQL Injection protection
-
Anti Spam reCaptcha
-
Registration with Email Verification
-
Forgot password
-
and more ...
installation
-
add account/ folder to your script and edit config.php file
required
-
PHP version >= 5.4
-
Mysqli
-
Mail function enable
Version
developers
-
please send your suggestions and reports to : mohamed@elbahja.me
Credits
licence
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.