Using the Session ΒΆ

The functions and macros to manipulate the session are defined in the REBLOCKS/SESSION package.

Session initialization

When a new user opens the site in the browser, Reblocks does these steps:

The method you define for init generic-function should return a root widget. This widget may include children and render them in it's reblocks/widget:render generic-function implementation.

You will find an example of init in the Quickstart section.

Storing data

You can store any kind of data in a session.

To set a value, use (SETF GET-VALUE) function.

For example, you might want to store information about the current user if he logged in:

API