-/* $Id: httpd.js,v 1.61 2005/07/14 12:47:37 mmondor Exp $ */
+/* $Id: httpd.js,v 1.62 2005/07/14 13:00: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.61 2005/07/14 12:47:37 mmondor Exp $';
+SERVER_CVSID = '$Id: httpd.js,v 1.62 2005/07/14 13:00:41 mmondor Exp $';
(this.http_vhost.session_exp != undefined ?
this.http_vhost.session_exp :
options.default_session_exp));
- sess.variables.count = 1;
+ sess.variables.count = 0;
doc.addHeader('Set-Cookie: SessionID=' + sess.sessid +
'; expires=' +
(new Date(sess.expires * 1000)).toGMTString() +
doc.flush(this, null);
return true;
- } else
- this.http_vars_session.count++;
+ }
+ if (this.http_sessid != undefined)
+ this.http_vars_session.count++;
/*