I want to add some value with domain name in cookies using JQuery (1.6.1)and jquery.cookie.js plug-in. I am able to add Value in cookies with below code.
$.cookie('cookie_name', 'cookie_value', { expires : 10 });
But I am not able to add the data in cookies with below code.Even unable to add cookie name or value to browser.
Code
$.cookie('cookie_name', 'cookie_value', { expires: 10, domain: 'example.com', secure: true })
Please help me out on this.