OLPCities/Cookie

From OLPC
< OLPCities
Revision as of 08:53, 22 September 2006 by Adamascj (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This library is part of the Gamelib, created by Scott Porter and updated by Brent Silby. Gamelib is available under the terms of the GNU Library General Public Licence.

To use this library (this Class) add this line to the <HEAD> section of the web page of the Lot:

<script language="Javascript" src="http://www.dmu.com/olpc/gamelib_core.js"></script> 

Better to click this link and "save" the library at the same folder of the web page or put it at another folder at the same server and make a reference:

gamelib_core.js

If you put it at the same folder, the line would be:

<script language="Javascript" src="gamelib_core.js"></script> 

Cookies are small data storage containers in the visitor's browser. You can use up to 20 cookies per visitor. A cookie must have an unique name assigned to it, you do this when you create the cookie object. If a cookie with the name you use already exists, then your cookie object will have it's value set to whatever you set it to the last time the visitor was at your site. If not, the cookie's initial value will be null

Methods