State and settings

Part 6 of the Symfony course. The session and flash messages, CSRF tokens, the Translator, Dotenv and env placeholders, and the profiler.

The cards below open the lessons of the part, and the tree lists them in the reading order of the whole course. The previous and the next page at the bottom move through that order.

6.1 Sessions Store user state in the session with RequestStack flash messages and invalidation. Open 6.2 CSRF Protect forms with CSRF tokens validated on submit including header based requests. Open 6.3 Translations Translate interface strings with Translator locale files and plural forms. Open 6.4 Dotenv and env Manage settings with Dotenv files and read values with env placeholders. Open 6.5 Profiler Use the Symfony profiler toolbar, timeline, and Doctrine panel to find slow code and heavy queries. Open

Lessons