Native.php 519 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Session\SaveHandler;
  7. /**
  8. * Php native session save handler
  9. */
  10. class Native extends \SessionHandler
  11. {
  12. /**
  13. * Workaround for php7 session_regenerate_id error
  14. * @see https://bugs.php.net/bug.php?id=71187
  15. *
  16. * @param string $sessionId
  17. * @return string
  18. */
  19. public function read($sessionId)
  20. {
  21. return (string)parent::read($sessionId);
  22. }
  23. }