[ "register" => [ "Content-Type" => "application/json", "Authorization" => hash('md5', 'service_authentication'), "Auth-Request" => "register" ], "login" => [ "Content-Type" => "application/json", "Authorization" => hash('md5', 'service_authentication'), "Auth-Request" => "login" ], "default" => [ "Content-Type" => "application/json", "Authorization" => hash('md5', 'service_authentication') ], ] ]; $_SESSION['headers_configuration'] = $headers_array;