More session work.
This commit is contained in:
1 parent
60affa288e
commit
d3cd5f3c9a
5 files changed
+16
-39
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user