Skip to content

Session ID changing with custom session handler in PHP 8.2.0RC3 #9668

Closed as not planned
@campbell-m

Description

@campbell-m

Description

I'm afraid I can't yet reproduce a minimal test case after many hours of trying. However in the meantime I thought I'd report what I'm seeing anyway as we're getting close to the PHP 8.2.0 release date and in case someone can recognise what might be going wrong.

My application uses a custom session handler implementing the SessionHandlerInterface to store sessions in the database. It has worked fine with PHP 8.0, 8.1 and all the alpha, beta and RC versions up to and including RC2. Then when I installed RC3, sessions suddenly stopped working and the value of $_SESSION on one page was not the same as what had been written on the previous page. Adding some debugging I can see that the problem is that in RC3 the value of $id passed to read() when the session starts is not the same as that passed to write() when the previous page exits. However in RC2, with the exact same code, the two $id values are identical.

Any ideas?

PHP Version

PHP 8.2.0RC3

Operating System

Windows 11 IIS

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