Innovation Award
 September 2004
Number 4 |
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 |
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.
| 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%) |
1865 |
| Month: |
Not yet rated by the users |
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.