|
I used mentioned code to modify the cookie value. I was getting two cookies from production server. I have to modify the value of one cookie.
firstly I stored the value & names of the cookies from document.cookie. Then deleted the specific cookie thru your mentioned code
function deleteCookie ( name, path, domain ) {
document.cookie = name + "=" + ( ( path ) ? ";path=" + path : "") +
( ( domain ) ? ";domain=" + domain : "" ) +
";expires=Fri, 01-Jan-2010 00:00:01 UTC";
}
and lastly I modified the value of the cookie as I have stored it in array. Finally creating cookie using document.cookie
what it has done is, my cookie file created at (C:\Documents and Settings\Administrator\Cookies) is containing only one cookie
could u pls tell me how can I get value updated in this file too.
Thanks in advance
|