Book Image

Oracle APEX Cookbook : Second Edition

Book Image

Oracle APEX Cookbook : Second Edition

Overview of this book

Table of Contents (21 chapters)
Oracle APEX Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating storage events


With storage events you can store data on your local machine. This is similar to cookies but with storage events you can store more data than cookies. There are two types of storage events:

  • Local storage

  • Session storage

Local storage exists forever, or at least as long as the browser is installed and working. Session storage only holds the value for the lifetime of the session. A session holds the values of the items in an application for the time that a user is logged in in the application.

One important remark is that web storage can have different values for different browsers. Keep that in mind when working with web storage and multiple browsers.

Local storage can be used in APEX applications for user or machine specific settings. We will demonstrate this by putting a line on the login page telling when the last visit was.

Getting ready

You need to have a global page. This used to be page 0 in previous releases but now it doesn't have to be page 0. It could also be page...