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]);
    }
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]);
    }
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 ] ) ; }
Sanitizes a SESSION-variable

Experimental.

Returns null, if the variable does not exist

@param string $variableName
@return mixed
Sanitizes a SESSION - variable