driver.php 392 B

1234567891011121314151617181920212223242526272829
  1. <?php namespace System\Session;
  2. interface Driver {
  3. /**
  4. * Load a session by ID.
  5. *
  6. * @param string $id
  7. * @return array
  8. */
  9. public function load($id);
  10. /**
  11. * Save a session.
  12. *
  13. * @param array $session
  14. * @return void
  15. */
  16. public function save($session);
  17. /**
  18. * Delete a session by ID.
  19. *
  20. * @param string $id
  21. * @return void
  22. */
  23. public function delete($id);
  24. }