some notes on jet tag.

This commit is contained in:
Brad Arant 2025-01-15 15:44:53 -08:00
parent edebae34b1
commit f1f45af332

View File

@ -8,6 +8,18 @@ namespace jet {
__jet::__jet(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, this) {
if(keywordDefined("cgi") && (keywords[resolveKeyword("cgi")] == "true")) {
global.cgi = true;
if(keywordDefined("sessiondir")) {
// if request_has_cookie then
// pull sessionfile from sessiondir.
// else
// generate new session id.
// create session cookie in response.
}
coreutils::ZString requestMethod(getenv("REQUEST_METHOD"));
if(requestMethod == "POST") {
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));