From 0159050b7db044dd5ca3db6b7d4687baaf395b0a Mon Sep 17 00:00:00 2001 From: brad Arant Date: Thu, 1 May 2025 19:02:17 -0700 Subject: [PATCH] changes --- __jet.cpp | 5 ++--- tests/dump.txt | 31 +++++++++++++++++++++++++------ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/__jet.cpp b/__jet.cpp index be7b9f3..3f5ce18 100644 --- a/__jet.cpp +++ b/__jet.cpp @@ -13,15 +13,14 @@ namespace jet { global.cgi = true; if(keywordDefined("sessiondir")) { - global.cookies = getenv("HTTP_COOKIE"); global.session = true; + global.cookies = getenv("HTTP_COOKIE"); + // if request_has_cookie then // pull sessionfile from sessiondir. // if last activity time is expired then ignore. // follow sessiontimeoutredirecturl. // else -// generate new session id. -// create session cookie in response. unsigned char hashit[64]; unsigned char hash[SHA_DIGEST_LENGTH]; char hashname[64]; diff --git a/tests/dump.txt b/tests/dump.txt index 95ed08a..411bcbe 100644 --- a/tests/dump.txt +++ b/tests/dump.txt @@ -1,11 +1,30 @@ *** CGI VARIABLES *** *** GLOBAL VARIABLES *** +=[xxx] +addition=[8] +complete=[ABCD;tohex] +division=[1.666666666667] +divisor=[8] +error=[64] +exprnumbers=[0123456789] +include=[yes] +ix=[1] +lefty=[01234] +modified1=[ABCD] +multiplication=[15] +nested=[64] +newname=[another container value] +noeval=[this is the value store in $[%name1].] +numbers=[0123456789] +subtraction=[2] +theexpr=[bcd] +thename=[this is the value store in .] +tohex=[tohex] +varname1=[vardata] *** LOCAL VARIABLES *** +localvar=[This is a container set with ''] +testinclude=[xThis is a container set with ''x] *** KEYWORD VALUES *** -cgi=[true] -sessiondir=[.] +file=[./testinclude.jet] +name1=[] *** COOKIES *** - -$[^session] -