View Single Post
Old 12-10-2012, 06:57 PM   PM User | #6
mjosh123
New to the CF scene

 
Join Date: Dec 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
mjosh123 is an unknown quantity at this point
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
mjosh123 is offline   Reply With Quote