src/Session.php
public function create()
    {
        $this->getIdHandler()->generateId();

        $this->values = array();

        $this->firstTrace = time();
        $this->updateLastTrace();

        $this->requestsCount = 1;
        $this->regenerationTrace = time();

        $this->fingerprint = $this->generateFingerprint();

        $this->opened = true;

        return $this->opened;
    }
public function create()
    {
        $this->getIdHandler()->generateId();

        $this->values = array();

        $this->firstTrace = time();
        $this->updateLastTrace();

        $this->requestsCount = 1;
        $this->regenerationTrace = time();

        $this->fingerprint = $this->generateFingerprint();

        $this->opened = true;

        return $this->opened;
    }
public function create ( ) { $ this -> getIdHandler ( ) -> generateId ( ) ; $ this -> values = array ( ) ; $ this -> firstTrace = time ( ) ; $ this -> updateLastTrace ( ) ; $ this -> requestsCount = 1 ; $ this -> regenerationTrace = time ( ) ; $ this -> fingerprint = $ this -> generateFingerprint ( ) ; $ this -> opened = true ; return $ this -> opened ; }
Creates new session

It should be called only once at the beginning. If called for existing
session it ovewrites it (clears all values etc).
It can be replaced with {@link self::open()} (called with "true" argument)

@return bool Session opened?
Creates new session