TestAppLibSession.php 542 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace TestApp\Network\Session;
  3. use SessionHandlerInterface;
  4. /**
  5. * Test suite app/Network/Session session handler
  6. *
  7. */
  8. class TestAppLibSession implements SessionHandlerInterface {
  9. public $options = [];
  10. public function __construct($options = []) {
  11. $this->options = $options;
  12. }
  13. public function open($savePath, $name) {
  14. return true;
  15. }
  16. public function close() {
  17. }
  18. public function read($id) {
  19. }
  20. public function write($id, $data) {
  21. }
  22. public function destroy($id) {
  23. }
  24. public function gc($maxlifetime) {
  25. }
  26. }