A method for secure connection, from a client computer device, to a target computer resource comprising a server, and if necessary an application running on said server, implementing a proxy gateway comprising a memory for recording information on said connection and at least one agent executable on said server during a session, the method comprising the steps of: - the emission of a session-opening request by an application installed on the client station, leading to the creation of a primary session between the client station and the proxy gateway. Said request can contain the identifier of the target server or of the target application - the opening of a session between said proxy gateway and said server, with said method being characterized in that - said request-emission step is implemented by the prior opening of a primary session between the client station and the proxy gateway by the transmission of a message containing the identifier of the target server or of the target application. - said step of installing at least one agent is carried out successively comprising: ∘ said step of opening a secondary session between said proxy gateway and said server, said step comprising the establishment of the redirection of an emulated disk by the proxy gateway having recorded said agent thereon, ∘ performing a delay script that waits for said emulated disk to be available, ∘ copying the agent to a directory existing on the server. ∘ running the agent on said server ∘ establishing a virtual channel between the server and the gateway for the communication between the agent and the gateway ∘ then, opening an uplink channel between the client station and the server, ∘ finally the agent launches the office manager or the target application by injecting therein the necessary application identifiers transmitted by the gateway. - the emission of a session-opening request by an application installed on the client station, leading to the creation of a primary session between the client station and the proxy gateway. Said request can contain the identifier of the target server or of the target application - the opening of a session between said proxy gateway and said server, with said method being characterized in that - said request-emission step is implemented by the prior opening of a primary session between the client station and the proxy gateway by the transmission of a message containing the identifier of the target server or of the target application. - said step of installing at least one agent is carried out successively comprising: ∘ said step of opening a secondary session between said proxy gateway and said server, said step comprising the establishment of the redirection of an emulated disk by the proxy gateway having recorded said agent thereon, ∘ performing a delay script that waits for said emulated disk to be available, ∘ copying the agent to a directory existing on the server. ∘ running the agent on said server ∘ establishing a virtual channel between the server and the gateway for the communication between the agent and the gateway ∘ then, opening an uplink channel between the client station and the server, ∘ finally the agent launches the office manager or the target application by injecting therein the necessary application identifiers transmitted by the gateway. ∘ said step of opening a secondary session between said proxy gateway and said server, said step comprising the establishment of the redirection of an emulated disk by the proxy gateway having recorded said agent thereon, ∘ performing a delay script that waits for said emulated disk to be available, ∘ copying the agent to a directory existing on the server. ∘ running the agent on said server ∘ establishing a virtual channel between the server and the gateway for the communication between the agent and the gateway ∘ then, opening an uplink channel between the client station and the server, ∘ finally the agent launches the office manager or the target application by injecting therein the necessary application identifiers transmitted by the gateway.