AppserverIo\Appserver\Application\Application::getSessionDir PHP Метод

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

Returns the absolute path to the applications session directory.
public getSessionDir ( ) : string
Результат string The app session directory
    public function getSessionDir()
    {
        return $this->getNamingDirectory()->search(sprintf('php:env/%s/sessionDirectory', $this->getUniqueName()));
    }

Usage Example

Пример #1
0
 /**
  * Test if the getter for the session dir works.
  *
  * @return void
  */
 public function testGetSessionDir()
 {
     $this->assertEquals(ApplicationTest::SESSION_DIR, $this->application->getSessionDir());
 }