getCookie Method

This method will retrieve the value of a cookie previously saved using the setCookie command.

intel.xdk.cache.getCookie(name);

Description:

This method will get the value of a cookie previously saved using the setCookie command. If no such cookie exists, the value returned will be “undefined”.

Available Platforms:

Parameters:

name: The unique name for the data to retrieve.

Example:

var value = intel.xdk.cache.getCookie("userid");
For more complete information about compiler optimizations, see our Optimization Notice.