public function filterSession($variableName) {
        if(!is_string($variableName)) {
            throw new \Exception('Variable name expected as string');
        }
        
        if(!isset($_SESSION[$variableName])) {
            return null;
        }
        
        return $this->filter($_SESSION[$variableName]);
    }