public function __construct($key = null) { if (isset($key)) { $this->key = $key; } $this->startSession(); }