Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

rb.page.cookie Object Description
(system Template)

The cookie object provides a means for Web Authors to store and retieve information with the client using standard client-side 'cookie' technology. Authors can obviously do this manually by directly manipulating the HTTP headers that are sent to the client with a response, or inspecting the headers received from a browser. This can be achieved using a combination of rb.page.getHeader and rb.page.writeheader().

In practice though this can be very complex. The Whitebeam environment offers the rb.page.session interface to cookies as a flexible, easy to use alternative. The object takes care of reading and writing cookies and effectively deleting cookies from the client.

Before using cookies you should understand their capabilities and limitations and decide between them and the server side alternaives provided by the Whitebeam environment. See the session data techical note for details.

Methods

rb.page.cookie.write() Write a cookie to the clients browser.
rb.page.cookie.read() Read client side cookies.
rb.page.cookie.delete() Request the browser delete the cookie.
Whitebeam release 1.3.36
(loadtime : 141ms)