PHP Classes
elePHPant
Icontem

PHP Smart Session: Access sessions initialized only when necessary

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2013-04-29 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 866 All time: 3,883 This week: 871Up
Version License PHP version Categories
smart-session 1.0.0GNU Lesser Genera...5.2PHP 5, User Management
Description Author

This class can access sessions initialized only when necessary.

It can perform several operations with session variables like set or get values, check if variable is set and delete a variable.

The creation of a session is only done after the first access.

The class can check if session cookies or session GET variables to determine if a session exists before retrieving, deleting or checking a session variable value.

Innovation Award
PHP Programming Innovation award nominee
May 2013
Number 5


Prize: One downloadable copy of Komodo IDE
Every PHP script that needs use PHP sessions has some overhead just to start the sessions, even if sessions are not used.

This class can avoid session initialization overhead by only starting the sessions when they are needed in a script for the first time.

Manuel Lemos
Picture of Rubens Takiguti Ribeiro
Name: Rubens Takiguti Ribeiro <contact>
Classes: 7 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imagetest (6 files)
Plain text file SmartSession.php Class Main class
Accessible without login Plain text file example.php Example Exemple of use
Accessible without login Plain text file LICENSE.TXT Lic. License

  Files folder image Files  /  test  
File Role Description
  Accessible without login Plain text file test.php Test Main test script.
  Accessible without login Plain text file testClear.php Aux. Auxiliary script for test
  Accessible without login Plain text file testDel.php Aux. Auxiliary script for test
  Accessible without login Plain text file testGet.php Aux. Auxiliary script for test
  Accessible without login Plain text file testSet.php Aux. Auxiliary script for test
  Accessible without login Plain text file testStatus.php Aux. Auxiliary script for test

 Version Control Unique User Downloads Download Rankings  
 0%
Total:866
This week:0
All time:3,883
This week:871Up