Login   Register  
PHP Classes
elePHPant
Icontem

Local Data: Store multiple values in a single 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 (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-07-03 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 543 This week: 1All time: 5,069 This week: 1,384Up
Version License PHP version Categories  
local-data 1.0Artistic License5.0HTTP, PHP 5
Description Author  

This class can store multiple values in a single cookies.

It can set and get multiple values that use cookies to be shared between different server side scripts.

The values are stored in cookies encoded in JSON format so they can be easily accessed on the browser side JavaScript code preserving the original value data types.

A JavaScript library is provided to set and get values stored this way in cookies.

Innovation Award  
PHP Programming Innovation award nominee
July 2012
Number 4


Prize: One downloadable copy of PhpED Professional
Cookies are usually used to share persistent information between the browsers and the Web server that pertains to a given user.

Usually cookies are stored as a single text value associated to cookie name value.

This class can extend the use of cookies so a single cookie can contain multiple values of different types besides text strings.

It is meant to be used together with JavaScript component that provides the same functionality on the browser side, so you can set and get values in cookies on the server side that can be accessed on the browser side and vice-versa.

Manuel Lemos
Picture of Pavel Kukov
Name: Pavel Kukov <contact>
Classes: 1 package by
Country: Bulgaria Bulgaria
Age: ???
All time rank: 285919 in Bulgaria Bulgaria
Week rank: 1063 Up8 in Bulgaria Bulgaria Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imagejs (2 files)
Accessible without login Plain text file index.html Doc. index.html
Plain text file index.php Class index.php
Plain text file localdata.php Class localdata.php
Accessible without login Plain text file README Doc. README

  Files folder image Files  /  js  
File Role Description
  Accessible without login Plain text file jquery-1.7.2.min.js Data jquery-1.7.2.min.js
  Accessible without login Plain text file localdata.js Data localdata.js

 Version Control Unique User Downloads Download Rankings  
 0%Total:543All time:5,069
 This week:1This week:1,384Up