Skip to content
This repository was archived by the owner on May 16, 2018. It is now read-only.
This repository was archived by the owner on May 16, 2018. It is now read-only.

session_regenerate_id() issue on PHP7 #659

@driesdroesbeke

Description

@driesdroesbeke

I have the following code that works on php 5.6 but throws a warning on PHP7. The session is not stored in the db with Zend_Session_SaveHandler_DbTable.

$session_handler = new Zend_Session_SaveHandler_DbTable ( $configSessionHandler );
Zend_Session::setSaveHandler ( $session_handler );

If (! Zend_Session::sessionExists ()) {
     Zend_Session::rememberMe ( $seconds );
     Zend_Session::start ( $config );
}

The rememberMe method calls self::regenerateId() wich causes the following error on PHP7

PHP Warning:  session_regenerate_id(): Session object destruction failed.  ID: user (path: /var/lib/php/sessions)

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