some notes on jet tag.
This commit is contained in:
parent
edebae34b1
commit
f1f45af332
12
__jet.cpp
12
__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"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user