This commit is contained in:
brad Arant 2025-05-01 19:02:17 -07:00
parent 078ba7f81c
commit 0159050b7d
2 changed files with 27 additions and 9 deletions

View File

@ -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];

View File

@ -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]
<dump file="./d=[]
session=[18fd56a83f]