Tutorials: Working with HTTP Sessions

Configuring Session Creation

Even though the whole process can work without any further intervention, framework allows you to fine tune session creation via tag @ stdout.xml. Among its attributes most important for developers are:

If your project requires session and expects to be deployed in a distributed web server environment, setting handler attribute is required. Framework comes by default with NoSQLSessionHandler, able to persist session in a clustered key-value store database (eg: Redis Cluster).

If your project is not RESTful and it features authentication & authorization, setting auto_start attribute is required.

Reading and Writing to Session

Framework uses STDOUT MVC API to encapsulate all session operations via . Latter defines following methods relevant for developers: