June 11, 201115 yr Hello friends, I just came across this tutorial of javascript cookiebut wondering how to set up the cookie do i need to place it in the root folder of my site? i also want to know is it gud to set a cookie? is it used nowadays?
June 12, 201115 yr Javascript only works inside a web page on the visitors PC.* You would need to place the functionsinside the head section of the page that is setting or reading the cookie. Are cookies good or bad? - it depends what information you plan to keep in them. But for the most part they are harmless and useful. * Javascript can be made to run server side but that's a way more advanced than you are ready for. Plus in this case for placing a cookie it must be run client side.
Create an account or sign in to comment