Sessions, cookies, and cache

Just like any other web browser, the WebEngine module also supports mechanisms used to store temporary data and persistent data for session and cache. Sessions and cache are very important as they allow websites to remember your last visit and associate you with data, such as a shopping cart. The definitions of a session, a cookie, and a cache are shown as follows:

  • Session: Normally, sessions are server-side files that contain user information with a unique identifier, which gets sent from the client side to map them to a specific user. In Qt, however, a session simply means a cookie that doesn't have any expiration date, and hence it will be gone when the program is closed.
  • Cookie: Cookies are client-side files ...

Get Hands-On GUI Programming with C++ and Qt5 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.