H
HopfZ
Server sends cookie to browser and the browser send the same cookie
back to the server according to Wikipedia.
Do browsers send even javascript-generated cookie to servers?
For example, if I browse to a page on a server and if the content of
the page is the following:
<html>
<head><script>
alert(document.cookie);
var n = prompt('your new name');
document.cookie = 'name='+n+'; path=/; expires= Fri, 31-Dec-2010
23:59:59 GMT';
</script></head>
<body></body>
</html>
Will the browser send the generated cookie to server next time I visit
the page, even if it's not necessary to send the cookie to server in
this case?
back to the server according to Wikipedia.
Do browsers send even javascript-generated cookie to servers?
For example, if I browse to a page on a server and if the content of
the page is the following:
<html>
<head><script>
alert(document.cookie);
var n = prompt('your new name');
document.cookie = 'name='+n+'; path=/; expires= Fri, 31-Dec-2010
23:59:59 GMT';
</script></head>
<body></body>
</html>
Will the browser send the generated cookie to server next time I visit
the page, even if it's not necessary to send the cookie to server in
this case?