A simple php session class, using session.
Approximate usage
example :log in page: $session = session::getObject();
$session->set_ture(); // if $row['password'] ==
next page :
log out : $session = session::getObject();
$session->end_session();
Return by get_status() whether the current user is logged in effectively
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
21 Jul 2016
PHP simple session class code. Copy the code as follows: ?php class session { static $sessionObject; /* $_SESSION['user'] == 0 , don't work . * == 1 , he is really user . */ private function __construct() { if(
17 Oct 2019
PHP is simpler than ASP because PHP can be learned quickly, is cross-platform, has good database interaction capabilities, is closely integrated with Apache and other extension libraries, takes up less system resources, has fast code execution speed, is open source and free.
13 Jul 2016
PHP simple shopping cart design. In this program, two classes are created, one is the general Product class, which encapsulates a product and product attributes, and the other is the Cart class of the shopping cart. Product class (Product.php) product
13 Jul 2016
24 useful PHP libraries to share, 24php libraries. 24 useful PHP libraries to share, 24php libraries Currently, PHP is the most popular scripting language used for web development. You can easily find a lot of information about PHP on the Internet, including documentation, tutorials,
Hot Tools
PHP library for dependency injection containers
PHP library for dependency injection containers
A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking
Small PHP library for optimizing images
Small PHP library for optimizing images