Пример #1
0
 /**
  * @runInSeparateProcess
  */
 public function testId()
 {
     $this->assertEquals(session_id(), $this->proxy->getId());
     $this->proxy->setId('foo');
     $this->assertEquals('foo', $this->proxy->getId());
     $this->assertEquals(session_id(), $this->proxy->getId());
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function getId()
 {
     if (!$this->started) {
         return '';
         // returning empty is consistent with session_id() behaviour
     }
     return $this->saveHandler->getId();
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function getId()
 {
     return $this->saveHandler->getId();
 }