client Namespace Cookie

Summary

File
<./src/Ape_Jsf/Source/Core/Session.js>

Cookie Namespace Detail

Cookie
Cookie object

This is provided via mootools-core or by the JavaScript client

File:
<./src/Ape_Jsf/Source/Core/Session.js>

Summary

Own
Methods Attributes Methods Name Methods Description
<static>   Cookie. read (name) Read a variable from a the cookies.
<static>   Cookie. write (name, value) Write a variable to the cookies.

<static> {string} Cookie. read (name)

Read a variable from a the cookies.
Parameters:
{string} name Cookie key
Returns:
{string} The decoded cookie value or null
Example
///client var is a reference to APE.Client instance
client.addEvent('start', function() {
		this.core.start({'name': Cookie.read('FOO')});
};
See:

<static> Cookie. write (name, value)

Write a variable to the cookies.
Parameters:
{string} name Cookie key
{string} value The value to store
Example
///client var is a reference to APE.Client instance
client.addEvent('start', function() {
	this.core.start({'name': Cookie.write('FOO', 'BAR')});
};
See: