Cookies and JavaScript

JavaScript can read the cookies. The following is a simple command we can put in our JSP page to read the current used cookies:

    <body>
<script type="text/javascript">
document.write(document.cookie);
</script>
</body>

We have written the content of the cookie represented by the document.cookie JavaScript command in the page.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.186.201