destroy() публичный Метод

Explicitly destroys all session data
public destroy ( string $reason = null ) : void
$reason string A reason for destroying the session – used by the LoggingAspect
Результат void
 /**
  * @test
  */
 public function allSessionDataCanBeFlushedByCallingDestroy()
 {
     $session = new Session\TransientSession();
     $session->start();
     $session->putData('theKey', 'some data');
     $session->destroy();
     $session->start();
     $this->assertNull($session->getData('theKey'));
 }