Zebra_Session implements session locking. Session locking is a way to ensure that data is correctly handled
in a scenario with multiple concurrent AJAX requests. Read more about it in this excellent article by Andy Bakun
called {@link http://thwartedefforts.org/2006/11/11/race-conditions-with-ajax-and-php-sessions/ Race Conditions with Ajax and PHP Sessions}.
This library is also a solution for applications that are scaled across multiple web servers (using a
load balancer or a round-robin DNS) and where the user's session data needs to be available. Storing sessions in a
database makes them available to all of the servers!
Zebra_Session supports "flashdata" - session variable which will only be available for the next server request, and
which will be automatically deleted afterwards. Typically used for informational or status messages (for example:
"data has been successfully updated").
Zebra_Session is was inspired by John Herren's code from the {@link http://devzone.zend.com/413/trick-out-your-session-handler/ Trick out your session handler}
article and {@link http://shiflett.org/articles/the-truth-about-sessions Chris Shiflett}'s articles about PHP sessions.
The code is heavily commented and generates no warnings/errors/notices when PHP's error reporting level is set to
E_ALL.
Visit {@link http://stefangabos.ro/php-libraries/zebra-session/} for more information.
For more resources visit {@link http://stefangabos.ro/}