note 54872 deleted from function.session-regenerate-id by peehaa
| From: | peehaa@php.net | Date: | Mon, 13 Mar 2017 10:19:58 +0000 |
| Subject: | note 54872 deleted from function.session-regenerate-id by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208901@lists.php.net to get a copy of this message | ||
Note Submitter:
----
It would be more reliable to use the following regular expression when checking session_ids, as HEX
strings (MD5) are only of characters a-f and 0-9;
preg_match('/[0-f]/i', $session_id);