From 835390a598743fdc1796ac7924ea43b73e0cfc83 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 28 Jun 2010 19:20:26 +0000 Subject: Include session contents in results --- project2/cgiAppEngine.cpp | 12 +++++------- 1 file 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(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; -- cgit v1.2.3