From f1f45af3328bae2cfa2a66ea4037b25c6b4bc954 Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Wed, 15 Jan 2025 15:44:53 -0800 Subject: [PATCH] some notes on jet tag. --- __jet.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/__jet.cpp b/__jet.cpp index 9b0fca7..c65fbf7 100644 --- a/__jet.cpp +++ b/__jet.cpp @@ -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"));