I am using jQuery plugin to set cookies and when I use localhost for domain Will not store cookies.
Here's the plugin I'm using with jQuery 1.2.6.
Below is the code I am using, you can see that it does not like the local host, and I'm running it from the development web server on the local host. One extension is that I am running from port 4005, but this should not affect the domain, AFAX.
$ (function () {console.log ('test'); var one = $ cookie ('test .a'); var two = $ .cookie ('test.Two' ); Var three = $ .cookie ('test.Three'); console.log (['one', one]); Console.log (['two', two]); console.log (['three' (Three); $ ('# div1' ('Test' '', 'test2', 'path:' '' '}} $ .cookie (' test three ',' test3 ',' Path: '/', domain: 'localhost'}}}};
There was a problem setting the cookies. Make a domain name and it's in the form of 127.0.0.1 Add it to your host file. Then run the web application on that domain.
Comments
Post a Comment