// set Cookie.set("language", "en", {path: "/", duration: 365}); // read it into a var var language = Cookie.get("language"); // remove it. Cookie.remove("language"); How do I use for example // set Cookie.set("language", "en", {path: "/", duration: 365}) Do I put this in a hyperlink or anywhere in the page?Is this suppose to be in hyperlinks? Ex:<a href="something with cookies To remove it how do I put in a href? This is the format I'm going to have for the to language. <a href="http://en.mysite.com/" title="English"><strong>English</strong> - continue</a> Any help will be greatly appreciated.
you have to use a server-side scripting language such as ASP.NET, JAVA or PHP to use cookies. You can't just put it in a hyperlink or just anywhere on the page You must use a language other than HTML. try googling "cookies in ASP.NET" for example and you will get plenty of tutorials on how they are set, retrieved and removed. It's not too hard and you don't have to know the whole language to do it, but you will need an environment that runs ASP.NET