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/esp/esp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/web_server/esp') diff --git a/source4/web_server/esp/esp.h b/source4/web_server/esp/esp.h index 5d343db96e..9e58bdf066 100644 --- a/source4/web_server/esp/esp.h +++ b/source4/web_server/esp/esp.h @@ -96,13 +96,13 @@ typedef struct Esp { int maxScriptSize; void (*createSession)(EspHandle handle, int timeout); void (*destroySession)(EspHandle handle); - char *(*getSessionId)(EspHandle handle); + const char *(*getSessionId)(EspHandle handle); int (*mapToStorage)(EspHandle handle, char *path, int len, const char *uri, int flags); int (*readFile)(EspHandle handle, char **buf, int *len, const char *path); void (*redirect)(EspHandle handle, int code, char *url); - void (*setCookie)(EspHandle handle, char *name, char *value, - int lifetime, char *path, bool secure); + void (*setCookie)(EspHandle handle, const char *name, const char *value, + int lifetime, const char *path, bool secure); void (*setHeader)(EspHandle handle, const char *value, bool allowMultiple); void (*setResponseCode)(EspHandle handle, int code); int (*writeBlock)(EspHandle handle, char *buf, int size); -- cgit