Phalcon\Session\Adapter\Aerospike::read PHP 메소드

read() 공개 메소드

public read ( string $sessionId ) : string
$sessionId string Session variable name
리턴 string
    public function read($sessionId)
    {
        return $this->db->get($sessionId, $this->lifetime);
    }

Usage Example

예제 #1
0
 public function testShouldReadSession()
 {
     $sessionId = 'some_session_key';
     $session = new SessionHandler($this->getConfig());
     $data = [321 => microtime(true), 'def' => '678', 'xyz' => 'zyx'];
     $this->tester->haveInAerospike($sessionId, $data);
     $this->keys[] = $sessionId;
     $this->assertEquals($data, $session->read($sessionId));
 }
All Usage Examples Of Phalcon\Session\Adapter\Aerospike::read