Download the PHP package ghalambaz/remember-me without Composer
On this page you can find all versions of the php package ghalambaz/remember-me. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ghalambaz/remember-me
More information about ghalambaz/remember-me
Files in ghalambaz/remember-me
Package remember-me
Short Description RememberMe is a PHP library for persist sessions and remember users without need to login again in period of time!
License MIT
Homepage https://yanagroup.ir
Informations about the package remember-me
Remember Me - Session Persistence (In Just 2 Easy Steps!)
users can stay logged in to your website for how long as you want
remember me help you to have remember me functionality for login and users does not need to login every 20 or 30 minute after inactivity, because it will save your session to database and you can save sessions for long as you want! for example 1 year!!!
Installation
Step 1 : add package with composer
composer require ghalambaz/remember-me
Step 2 : create database tables
you must have a table for your users with column that include usernames
in our example i have table tbl_acl_users that have a column username
Usage
step 1 : initialize Properties Object
you need to access this object globally in your project
step 2 : Changing PHP Session Handler
please put step2 in the first line of your code
Usage Examples
how to login users?
after you logged in user with username and password you need to persist session data . so you should need to run persist function
how to check that user is login now or 1 year later?
how to logout?
how to change session life time?
All versions of remember-me with dependencies
ext-pdo Version *