public function setValue($key, $value) {
        $this->startSession();
        $_SESSION [$key] = $value;
        $this->sessionData = null;
        session_write_close();
    }
public function setValue($key, $value) {
        $this->startSession();
        $_SESSION [$key] = $value;
        $this->sessionData = null;
        session_write_close();
    }
public function setValue ( $ key , $ value ) { $ this -> startSession ( ) ; $ _SESSION [ $ key ] = $ value ; $ this -> sessionData = null ; session_write_close ( ) ; }
Set a session value by key and invalidate the session data

@param string $key
@param mixed $value
Set a session value by key and invalidate the session data