Support for creating APIs using PHP sessions