logo

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 is not RESTful and it features authentication & authorization, setting auto_start attribute is required.

Load Balancing

If your project will be load balanced on multiple web servers, setting handler attribute is required. Latter must point to a SessionHandlerInterface implementation and framework comes by default with:

Reading and Writing to Session

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

×