More session work.

This commit is contained in:
brad Arant committed 2025-03-17 07:44:36 -07:00
1 parent 60affa288e
commit d3cd5f3c9a
5 files changed
+16 -39

No files matched your search

+6 -3
View File
@@ -9,11 +9,14 @@ namespace jet {
__jet::__jet(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, this) {
char *cookies;
std::cout << "010" << std::endl;
if(keywordDefined("cgi") && (resolveKeyword("cgi") == "true")) {
std::cout << "011" << std::endl;
global.cgi = true;
if(keywordDefined("sessiondir")) {
cookies = getenv("HTTP_COOKIE");
std::cout << "012" << std::endl;
global.cookies = getenv("HTTP_COOKIE");
global.session = true;
// if request_has_cookie then
// pull sessionfile from sessiondir.
@@ -51,8 +54,8 @@ namespace jet {
}
else if(contentType == "application/x-www-form-urlencoded")
global.setupFormURLEncoded(postdata);
// else if(contentType == "application/x-www-form-urlencoded")
// global.setupFormURLEncoded(postdata);
}
}
processContainer(container);