public function startSession($domain) {
        $this->cookieLocation = str_replace('APP_ROOT', APP_ROOT, $this->cookieLocation);
        if (!is_dir($this->cookieLocation))
            mkdir($this->cookieLocation);
        if (!is_dir($this->cookieLocation)) {
            $this->error($this->error = "Can't create folder {$this->cookieLocation}");
        }
        $this->currentFile = $this->cookieLocation . date('YmdHis') . '-' . md5($domain);
        fclose(fopen($this->currentFile, 'w'));
    }
public function startSession($domain) {
        $this->cookieLocation = str_replace('APP_ROOT', APP_ROOT, $this->cookieLocation);
        if (!is_dir($this->cookieLocation))
            mkdir($this->cookieLocation);
        if (!is_dir($this->cookieLocation)) {
            $this->error($this->error = "Can't create folder {$this->cookieLocation}");
        }
        $this->currentFile = $this->cookieLocation . date('YmdHis') . '-' . md5($domain);
        fclose(fopen($this->currentFile, 'w'));
    }
public function startSession ( $ domain ) { $ this -> cookieLocation = str_replace ( 'APP_ROOT' , APP_ROOT , $ this -> cookieLocation ) ; if ( ! is_dir ( $ this -> cookieLocation ) ) mkdir ( $ this -> cookieLocation ) ; if ( ! is_dir ( $ this -> cookieLocation ) ) { $ this -> error ( $ this -> error = "Can't create folder {$this->cookieLocation}" ) ; } $ this -> currentFile = $ this -> cookieLocation . date ( 'YmdHis' ) . '-' . md5 ( $ domain ) ; fclose ( fopen ( $ this -> currentFile , 'w' ) ) ; }
Create a session file for specified domain
@param $domain
Create a session file for specified domain