Login   Register  
PHP Classes
elePHPant
Icontem

Session in Cookies

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Ahmed Magdy
Name: Ahmed Magdy <e-mail contact>
Packages: 3 Browse all classes by Ahmed Magdy Browse all classes by
Country: Egypt Egypt - PHP jobs in Egypt
Age: 33
All time rank: 5914 in Egypt Egypt
Week rank: 2187 Down22 in Egypt Egypt Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This class implements a session handler that store session data in cookies.

The cookie data is encrypted with a secret server side key to prevent sniffers from see its contents.

The class buffers the page contents to be able to send the headers of new session cookie values before the page contents are served.

  Classes of Ahmed Magdy  >  Session in Cookies  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Session in Cookies
Base name: cookie_session
Description: Session handler that stores data in cookies
Version: -
PHP version: 4
License: GNU General Public License (GPL)
All time users: 2571 users
All time rank: 1300
Week users: 0 users
Week rank: 2054 Equal
 
  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
December 2006
Number 2

Prize: One book of choice by O'Reilly
By default, sessions use server side files to store and retrieve session data on each request.

Storing session data in files works well for single server sites. For sites served by a cluster, it may become too slow, if possible at all.

This class implements an alternative session handling solution that uses cookies to store session data. It uses encryption to preserve the integrity and privacy of the data that is stored.

Despite this solution leads to a greater bandwidth usage, it is a much less complicated solution than other alternatives to make sessions work in a clustered Web server environment.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (75.0%)
Good (83.3%)
Not sure (58.3%)
Sufficient (75.0%)
-
-
Not sure (59.2%)
897
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
Accessible without login Plain text file cookie_session.php Class The cookie session class
Plain text file doc.txt Doc. Read me file
Plain text file test2.php Example The second example script that shows the samed session data.
Plain text file test1.php Example the first test file where session is set.

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