summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-10-10 20:28:07 +0000
committerrandomdan <randomdan@localhost>2011-10-10 20:28:07 +0000
commit281e94b87d0bfd9ce712cd4301259f9db0ef7887 (patch)
tree03b622fa95c515bd27a541ee86d13277c9071113
parentFix issue with not creating unique session IDs (diff)
downloadproject2-281e94b87d0bfd9ce712cd4301259f9db0ef7887.tar.bz2
project2-281e94b87d0bfd9ce712cd4301259f9db0ef7887.tar.xz
project2-281e94b87d0bfd9ce712cd4301259f9db0ef7887.zip
The session ID is an attribute of it, not a member of it
-rw-r--r--project2/cgi/cgiAppEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/project2/cgi/cgiAppEngine.cpp b/project2/cgi/cgiAppEngine.cpp
index 1c52135..1cee535 100644
--- a/project2/cgi/cgiAppEngine.cpp
+++ b/project2/cgi/cgiAppEngine.cpp
@@ -144,7 +144,7 @@ CgiApplicationEngine::addAppData(const Presenter * p) const
addCoreAppData(p);
// Sessions variables
p->pushSub("session", env()->xmlPrefix);
- p->addField("id", cursession->ID.str());
+ p->addAttr("id", cursession->ID.str());
Session::Values session(cursession->GetValuesCopy());
BOOST_FOREACH(Session::Values::value_type sv, session) {
p->pushSub("var", env()->xmlPrefix);