Chris@0: started = true; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Tells if the session is started or not Chris@0: * @return bool Chris@0: */ Chris@0: public function isStarted() { Chris@0: return $this->started; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Stops the session completely, clean slate for the browser Chris@0: * @return bool Chris@0: */ Chris@0: public function stop() { Chris@0: //Since we are using a remote browser "API", stopping is just like resetting, say good bye to cookies Chris@0: //TODO: In the future we may want to control a start / stop of the remove browser Chris@0: return $this->reset(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Clears the cookies in the browser, all of them Chris@0: * @return bool Chris@0: */ Chris@0: public function reset() { Chris@0: $this->getBrowser()->clearCookies(); Chris@0: $this->getBrowser()->reset(); Chris@0: $this->started = false; Chris@0: return true; Chris@0: } Chris@0: }