SessionUpdateTimestampHandlerInterface.php 458 B

1234567891011121314151617181920212223
  1. <?php
  2. interface SessionUpdateTimestampHandlerInterface
  3. {
  4. /**
  5. * Checks if a session identifier already exists or not.
  6. *
  7. * @param string $key
  8. *
  9. * @return bool
  10. */
  11. public function validateId($key);
  12. /**
  13. * Updates the timestamp of a session when its data didn't change.
  14. *
  15. * @param string $key
  16. * @param string $val
  17. *
  18. * @return bool
  19. */
  20. public function updateTimestamp($key, $val);
  21. }