Create a PHP code for Authentication in web api using Managing Connection

MQL5 Scripts Design

Specification

Hi I have already implemented web api auth using the mt5 given doc.  https://support.metaquotes.net/en/docs/mt5/api/webapi_pings#test_access

it is working fine. But the problem is it's creating a new new connection on every request. MT5 has gave solution for this as well. https://support.metaquotes.net/en/docs/mt5/api/webapi_pings. But am unable to implement that.
For the auth I am using this code base, https://support.metaquotes.net/en/docs/mt5/api/webapi_https#example

now your task is to give me a code for implementing the ping, so that the connection doesn’t increase. 

Responded

1
Developer 1
Rating
(94)
Projects
162
40%
Arbitration
20
15% / 75%
Overdue
73
45%
Free
2
Developer 2
Rating
(18)
Projects
26
27%
Arbitration
0
Overdue
2
8%
Free

Project information

Budget
40 - 85 USD
For the developer
36 - 76.5 USD
Deadline
to 1 day(s)