-/* $Id: httpd.js,v 1.21 2005/07/07 05:34:14 mmondor Exp $ */
+/* $Id: httpd.js,v 1.22 2005/07/07 05:40:41 mmondor Exp $ */
/*
* Copyright (c) 2005, Matthew Mondor
* Server identification
*/
SERVER_VERSION = 'mmondor_js_httpd/0.0.1 (NetBSD)';
-SERVER_CVSID = '$Id: httpd.js,v 1.21 2005/07/07 05:34:14 mmondor Exp $';
+SERVER_CVSID = '$Id: httpd.js,v 1.22 2005/07/07 05:40:41 mmondor Exp $';
this.http_agent = '';
this.http_content_length = -1;
this.http_modified_since = undefined;
+ this.http_sessid = undefined;
+ this.http_vars_session = {};
/* Split request lines */
lines = this.request_data.split("\r\n");
tr.addContent(td);
table.addContent(tr);
+ tr = new MLTag('tr', true);
+ td = new MLTag('td', true);
+ td.addAttr('align', 'right');
+ td.addContent('SessID:');
+ tr.addContent(td);
+ td = new MLTag('td', true);
+ td.addContent(this.http_sessid);
+ tr.addContent(td);
+ table.addContent(tr);
+
+ tr = new MLTag('tr', true);
+ td = new MLTag('td', true);
+ td.addAttr('align', 'right');
+ td.addContent('Sess vars:');
+ tr.addContent(td);
+ td = new MLTag('td', true);
+ var font = new MLTag('font', true);
+ font.addAttr('size', '-3');
+ pre = new MLTag('pre', true);
+ pre.addContent(uneval(this.http_vars_session));
+ font.addContent(pre);
+ td.addContent(font);
+ tr.addContent(td);
+ table.addContent(tr);
+
return table;
}