1. A method comprising: initiating a user session with a client device, the user session to access a remote resource on a server device coupled with the client device over a network, wherein the connection between the client device and the remote resource is through an application firewall; performing an application firewall context setup with the firewall in response to the user session, wherein the application firewall context comprises firewall context information to be used during the user session to perform network and application security operations with the application firewall; creating a response to provide information from the remote resource to the client device, wherein the response further comprises metadata to be used to update the firewall context information; updating the firewall context information with the application firewall based on the metadata; and transmitting the response to the client device.