I want to create cookie on root of my host. for example when i'm on www.mydomain.com/test and set cookie , it creates on the cookie on the root. i tried jquery cookie plugin and this function but it don't work:
function setCookie2(c_name, value, expiredays) {
$.cookie(c_name, value, {
expires: 1, //expires in 10 days
path: '/' //The value of the path attribute of the cookie
//(default: path of page that created the cookie).
});}
it still creates cookie on /test folder