From fc45b63e478f6f891f0d04bf49423be30a63617d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 27 May 2005 00:29:58 +0000 Subject: r6998: - added support for application[] data, which is global to all clients using the web server. This allows for things like application['state'] = "shuttting down" and then every web client can see that the server is going down - added support for session[] data. This allows web pages to store long term data specific to this client. It relies on cookies. Sessions auto timeout (default timeout 5 minutes). The timeout can be set in the scripts. - changed from processing all .html files as esp, to only processing .esp files as esp. This makes it easier to compare the samba web server to appWeb as a reference implementation. - expanded the number of standard variables setup by esp. See the showvars.esp example page for all variables. (This used to be commit c418b23c2ea383da8fad21b62213ec01fd135ebb) --- source4/web_server/web_server.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/web_server/web_server.h') diff --git a/source4/web_server/web_server.h b/source4/web_server/web_server.h index 0202c91ef7..f23ea90d55 100644 --- a/source4/web_server/web_server.h +++ b/source4/web_server/web_server.h @@ -25,6 +25,7 @@ context of one open web connection */ struct websrv_context { + struct task_server *task; struct stream_connection *conn; struct { DATA_BLOB partial; @@ -38,6 +39,10 @@ struct websrv_context { const char *referer; const char *host; const char *accept_encoding; + const char *accept_language; + const char *accept_charset; + const char *cookie; + const char *session_key; } input; struct { DATA_BLOB content; @@ -46,4 +51,7 @@ struct websrv_context { int response_code; const char **headers; } output; + struct session_data *session; }; + + -- cgit