Unit 15.3. JavaScript and Cookies
Document.Cookie
Cookies can also be created, sent, and read with JavaScript. Cookies are supported starting with JavaScript 1.0 as part of the Document Object Model. They are a property of the document object.
FOR EXAMPLE
document.cookie
Reading Document.Cookie
Below is an alert that will show all cookies that have been created for the current page. If you want to check the values of the cookies you created via the Web Toolkit, simply read document.cookie:
FOR EXAMPLE
htp.p('<SCRIPT>alert(document.cookie);</SCRIPT>'); ...
Get Oracle® Web Application Programming for PL/SQL® Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.