PHP Classes

Cookie preferences: Manage site user preferences stored in cookies

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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,368 This week: 1All time: 2,649 This week: 1,279Up
Version License Categories  
cookie_preferences 1.0GNU General Publi...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: 1302170 in United States United States
Week rank: 995 Up112 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file 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,368All time:2,649
 This week:1This week:1,279Up
 User Ratings  
 All time