I have normal programming on cookie. It is fine to run under IIS. But it can only get Cookie value, and can not set Cookie ubder the Jboss. May i know if there are any configuration to support Cookie?
Thanks,
Quinten
JavaScript Code:
function getCookie(name) {
var cookies = document.cookie;
var start = cookies.indexOf(name + '=');
if (start == -1) return null;
var len = start + name.length + 1;
var end = cookies.indexOf(';',len);
if (end == -1) end = cookies.length;
return unescape(cookies.substring(len,end));
}
function setCookie(name, value, expires, path, domain, secure) {
value = escape(value);
expires = (expires) ? ';expires=' + expires.toGMTString() :'';
path = (path) ? ';path=' + path :'';
domain = (domain) ? ';domain=' + domain :'';
secure = (secure) ? ';secure' :'';
document.cookie =
name + '=' + value + expires + path + domain + secure;
}