Unit 15.4. Storing State in Database Tables

Track Page Visits

Cookies are useful for storing small pieces of data. Using cookies in conjunction with database tables makes cookies much more useful. Information stored in the database will be held there permanently. You can analyze the statistics that accumulate in database tables.

Statistics about Web traffic are frequently a requirement for a Web application. This is the kind of information that you would want to hold in a database table, so that you can query the table later and collect more and more information over time.

In Unit 15.2, you create a cookie called VISITOR that holds the name the user provided. Since the user’s name is captured in a cookie, each request can be identified as coming ...

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.