SessionHandlerInterface.php 948 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * This file is part of workerman.
  4. *
  5. * Licensed under The MIT License
  6. * For full copyright and license information, please see the MIT-LICENSE.txt
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @author walkor<walkor@workerman.net>
  10. * @copyright walkor<walkor@workerman.net>
  11. * @link http://www.workerman.net/
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. namespace Workerman\Protocols\Http\Session;
  15. use \SessionHandlerInterface as InternalSessionHandlerInterface;
  16. interface SessionHandlerInterface extends InternalSessionHandlerInterface
  17. {
  18. /**
  19. * Update sesstion modify time.
  20. *
  21. * @see https://www.php.net/manual/en/class.sessionupdatetimestamphandlerinterface.php
  22. *
  23. * @param string $id Session id.
  24. * @param string $data Session Data.
  25. *
  26. * @return bool
  27. */
  28. public function updateTimestamp($id, $data = "");
  29. }