PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 874 All time: 4,021 This week: 131Up
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 is available for providing paid consulting. Contact Rubens Takiguti Ribeiro .
Classes: 7 packages by
Country: Brazil Brazil
Age: 39
All time rank: 63747 in Brazil Brazil
Week rank: 312 Up26 in Brazil Brazil Up
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:874
This week:0
All time:4,021
This week:131Up