This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.
Remedy AR System Server
BMC Remedy AR System Server
How to set the value of a cookie to a field on an ARSystem form.
var cookieName = document.cookieForm.cName.value;
var cookieValue = document.cookieForm.cValue.value;
document.cookie = cookieName+"="+cookieValue;
if (document.cookie.length > 0)
// Specify the cookie you wish to get the value of
var cookieName = "JSESSIONID";
// Specify the database ID of the ARSystem field you want to set. It must include the prepending "F"
var arsysfieldID = "F536870918";
begin = document.cookie.indexOf(cookieName+"=");
if (begin != -1)
begin += cookieName.length+1;
end = document.cookie.indexOf(";", begin);
if (end == -1) end = document.cookie.length;
var cookieVal = document.cookie.substring(begin, end);
This active link, if running when the page opens, should execute on Window Loaded.