Login   Register  
PHP Classes
elePHPant
Icontem

Cookie preferences: Manage site user preferences stored in cookies

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-08-01 (10 years ago) RSS 2.0 feedStarStarStar 53%Total: 1,367 All time: 2,645 This week: 1,382Up
Version License Categories  
cookie_preferences 1.0GNU General Public Lice...HTTP, User Management
Description Author  

This class is meant to store and retrieve preference values of an user of a site using cookies.

It can be used to store any kind of site user access context value, not only site usage preferences, but also other things like items added by an anonymous user to a shopping cart.

The preferences values are stored in an obfuscated format using the ROT12 algorithm to make it a little more difficult for curious users to understand what is being stored.

If a preference can not be stored or retrieve, eventually because the user browser is not accepting cookies, the class will just output a PHP Notice, which can be turned on or off in your app by using PHP error reporting control functions.

Picture of Ken Stanley
Name: Ken Stanley <contact>
Classes: 2 packages by
Country: United States United States
Age: 37
All time rank: 1299170 in United States United States
Week rank: 1754 Down201 in United States United States Down

  Files folder image Files  
File Role Description
Plain text file cookie_preferences.inc Class The PHP class for cookie_preferences
Accessible without login Plain text file README.cookie_preferences Doc. Documentation with examples on how to use cookie_preferences

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,367All time:2,645
 This week:0This week:1,382Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:1362