Doc #70520 [Com]: session_regenerate_id() "Failed to create session ID" with custom SessionHandler
| From: | jacky at xsteach dot com | Date: | Mon, 19 Oct 2015 05:11:11 +0000 |
| Subject: | Doc #70520 [Com]: session_regenerate_id() "Failed to create session ID" with custom SessionHandler | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12824@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70520&edit=1
ID: 70520
Comment by: jacky at xsteach dot com
Reported by: hpdl at oscommerce dot com
Summary: session_regenerate_id() "Failed to create session
ID" with custom SessionHandler
Status: Closed
Type: Documentation Problem
Package: Session related
Operating System: Win10
PHP Version: 7.0.0RC3
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
i met the same problem on mac osx with php7RC5. I use yii2 framework with redis as session
storage.It is ok when i install php7RC2, but get error session_regenerate_id(): Failed to create
session ID: user (path: ). Is this issue fixed after RC3?
Previous Comments:
------------------------------------------------------------------------
[2015-09-19 08:13:02] yohgaki@php.net
@alec
When new Zend Engine is introduced, a bug in session read is introduced.
https://bugs.php.net/bug.php?id=70529
I've fixed this today. If you would like to use "binary" session data like mcrypt
encrypted data, you'll need most recent PHP7 build.
------------------------------------------------------------------------
[2015-09-19 06:44:58] alec at alec dot pl
I've got the same issue. Don't you think the error is misleading or at least gives no clue
about where the issue is?
------------------------------------------------------------------------
[2015-09-19 01:42:41] yohgaki@php.net
New example code is in svn.
------------------------------------------------------------------------
[2015-09-19 01:41:24] yohgaki@php.net
Automatic comment from SVN on behalf of yohgaki
Revision: http://svn.php.net/viewvc/?view=revision&revision=337850
Log: Fixed bug #70520 - Update and improve example code
------------------------------------------------------------------------
[2015-09-18 22:45:22] yohgaki@php.net
Oops. I forgot to modify key string to be static string.
$key = substr(sha1(random_bytes(24)), 0, 24);
should be something like
$key = 'secret_string';
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=70520
--
Edit this bug report at https://bugs.php.net/bug.php?id=70520&edit=1