diff options
author | randomdan <randomdan@localhost> | 2010-06-28 19:20:26 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-06-28 19:20:26 +0000 |
commit | f3973562a974336b7f39abad722d838fb6fe775b (patch) | |
tree | 87405be0c7e007e7a7c9b84dfa63957a9afcf58f | |
parent | Use FCgiIO C++ wrapper (diff) | |
download | project2-f3973562a974336b7f39abad722d838fb6fe775b.tar.bz2 project2-f3973562a974336b7f39abad722d838fb6fe775b.tar.xz project2-f3973562a974336b7f39abad722d838fb6fe775b.zip |
Include session contents in results
-rw-r--r-- | project2/cgiAppEngine.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/project2/cgiAppEngine.cpp b/project2/cgiAppEngine.cpp index f1c38d7..d3fbe80 100644 --- a/project2/cgiAppEngine.cpp +++ b/project2/cgiAppEngine.cpp @@ -121,14 +121,12 @@ CgiApplicationEngine::PresentStage::run() if (!appEngine->sessionID.is_nil()) { xmlpp::Element * sessionXml = responseRoot->add_child("session", "project2"); sessionXml->set_attribute("id", boost::lexical_cast<Glib::ustring>(appEngine->sessionID)); - syslog(LOG_DEBUG, "> var dump"); Session::Values session(sessionsContainer->GetSession(appEngine->sessionID)->GetValuesCopy()); - //BOOST_FOREACH(SessionShm::Values::value_type sv, session) { - //xmlpp::Element * param = sessionXml->add_child("var", "project2"); - //param->add_child_text(sv.second); - //param->set_attribute("name", sv.first); - //} - syslog(LOG_DEBUG, "< var dump"); + BOOST_FOREACH(SessionShm::Values::value_type sv, session) { + xmlpp::Element * param = sessionXml->add_child("var", "project2"); + param->add_child_text(sv.second); + param->set_attribute("name", sv.first); + } } // XSLT Style char * buf; |