SymfonyWorld Online 2021 Winter Edition December 9 – 10, 2021 100% Online 25 talks and 10 workshops

New in Symfony 2.4: Limiting Session Metadata Writes

Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.

Contributed by
Adrien Brault
in #9119.

Today's blog post is as easy as it can get, as this new feature comes with a dedicated cookbook entry in the Symfony documentation.

In Symfony 2.4, the new framework.session.metadata_update_threshold setting lets you define a certain amount of time between two session writes when nothing (except the metadata) changes in your session. Setting it to a large value helps with performance, but at the same time, it can lead to sessions being garbage collected too early.

Reading the cookbook is the best way to learn more about the trade-offs.

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.

New in Symfony 2.4: Limiting Session Metadata Writes symfony.com/blog/new-in-symfony-2-4-limiting-session-metadata-writes

Tweet this

Comments

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.