The Wayback Machine - https://web.archive.org/web/20250626193823/https://github.com/symfony/symfony/issues/44936
Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

New session token after every request using http_basic authentication #44936

Copy link
Copy link
Closed
@ghost

Description

Symfony version(s) affected

5.3, 5.4, 6.0

Description

I'm using default http_basic implementation. After passing credentials into dialog, user is authenticated successfully, but then, after every request (page refresh) Symfony executes authentication process again and creates new session token. This problem is not occurring on 4.4 with (almost) identical configuration.

How to reproduce

https://github.com/maciejmaciag/symfony_http_basic_reproducer
I've created simple controller with single secured route. You can check that PHPSESSID is different after every request.
Memory user's credentials: user1 zaq1@WSX

Possible Solution

No response

Additional Context

PHP 8.1, Debian 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.