Unit 15.2. The Web Toolkit and Cookies

Three Cookie Actions

As a Web developer, there are three main actions you need to know in order to work with cookies; in fact, you will probably only use the first two:

  1. send— Send a cookie, or reset the value of an existing cookie

  2. get— Get, or read, the value of an existing cookie

  3. delete— Delete an expired cookie by setting its expiration date to the past. (This option is not often done and may not be handled as expected by the browser.)

OWA_COOKIE Package

Oracle provides a package, OWA_COOKIE, with procedures that allow you to perform each of these actions (Table 15.2). Other elements in the OWA_COOKIE package, such as the OWA_COOKIE type, provide additional built-in support for cookies.

HTTP Header ...

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.