Web Servers and Rendering - sgml/signature GitHub Wiki

Use the following process:

  • To update the data from the client, use a custom HTTP header via AJAX

  • To send the data from the server, bind the custom HTTP header value to a cookie using mod_session

>Browser based session

Session On
SessionCookieName session path=/

>The session is not useful unless it can be written to or read from. The following example shows how values can be injected into the session through the use of a predetermined HTTP response header called X-Replace-Session.

>Writing to a session

Session On
SessionCookieName session path=/
SessionHeader X-Replace-Session

>The header should contain name value pairs expressed in the same format as a query string in a URL, as in the example below. Setting a key to the empty string has the effect of removing that key from the session.

  • For persistence, store the custom HTTP header or the entire cookie into an environment variable using SetEnv. For example:

    SetEnv X-Replace-Session %{X-Replace-Session}
    SetEnv X-Replace-Session req_novary('X-Replace-Session')
    SetEnv X-Replace-Session resp('X-Replace-Session')
    SetEnv HTTP_COOKIE %{HTTP_COOKIE}

References

Citrix/VMWare/VirtualBox

WSGI

⚠️ **GitHub.com Fallback** ⚠️