Skip to content

Document how to set session.cache_limiter #8784

Closed
@goetas

Description

@goetas

The current session implementation sends some "Cache" headers really similar to http://php.net/manual/en/function.session-cache-limiter.php

This behavior can be configured by setting some properties into the parameter, session.storage.options

As example:

# config/packages/framework.yaml
parameters:
    session.storage.options:
        cache_limiter: 0

If cache_limiter is 0 symfony will not set any particular header header and will fallback on what specified by http://php.net/manual/en/session.configuration.php#ini.session.cache-limiter

cache_limiter can also be set to one of the nocache, private, private_no_expire, or public vales

Related to symfony/symfony#24988 (comment)

As suggested here symfony/symfony#24988 (comment) should be documented that changing this value should be done carefully.

Metadata

Metadata

Assignees

Labels

HttpFoundationhasPRA Pull Request has already been submitted for this issue.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions