Login   Register  
PHP Classes
elePHPant
Icontem

Locked Session Handler

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of brolewis  >  Locked Session Handler  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Locked Session Handler
Base name: session
Description: Session handler with variable locking support
Related classes: , , , ,
Version: -
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 2052 users
All time rank: 1635
Week users: 1 user
Week rank: 2417
 

  Author  
Picture of brolewis
Name: brolewis <e-mail contact>
Packages: 1 Browse all classes by brolewis Browse all classes by
Country: United States United States - PHP jobs in United States
Age: ???
All time rank: 1174158 in United States United States
Week rank: 1625 Down184 in United States United States Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description  
This class is custom session handler that allows for values stored in the session variables to be locked to prevent changes.

The class provides functions to set, retrieve, check and delete session variable values, as well functions to lock and unlock given session variables.

The names of locked variables are added to a special session variable array. If a script attempts to changes or delete locked session variables, they are not changed and the class will issue a non-fatal error notice.

  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image User Management User records, authentication and session handling View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
September 2004
Number 4

Prize: One copy of the PHP Anthology book set
The capability to manage user session information is an important and popular feature of multi-user PHP applications.

Sometimes it is necessary to set session variables that should not be changed throughout the session lifetime, like for instance application constants or session fixed values, such as the current session user name, or even values that should not be changed because the user access is in a state that requires that some variable be locked against changes.

However, an application may accidentally attempt to change session variables that should not be changed due to bugs or concurrency situations that were not predicted.

This class implements a wrapper around the access to session variables to implement locking mechanisms and detect situations of invalid change attempts that are due to bugs that need to be fixed.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Not sure (43.8%)
Not sure (50.0%)
-
Sufficient (62.5%)
-
-
Insufficient (33.1%)
2141
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file session.class.php Class Main Session Class
Plain text file sessionTest.php Example Example

Download all files: session.tar.gz session.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.