Extending the Extended Portal

In Chapter 7, you developed a simple portal where the user can log in and receive a personalized news feed. In this chapter you will use this portal as a base and extend it by introducing the concept of a session to store information about the user on the server. You will also rewrite most of the portal to use XSP and then later add new functionality to the portal.

Adding Sessions

A common feature of web solutions is the concept of sessions. A session allows the application on the server to store information about the current user accessing the application. Applications are forced to do this themselves, because the HTTP protocol is stateless.

When a web application built in Cocoon decides it needs session storage, ...

Get Cocoon: Building XML Applications 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.