Loading src/session.cpp +7 Changes for src/session.cpp: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ #include <iostream> #include <cstring> #include <httppp/exception.h> Loading Loading @@ -126,7 +127,13 @@ void blogi::Session::addSessionData(const std::string &sessionid,const char *key sql << "INSERT INTO session_data (sessionid,key,value) VALUES ('" << sql.escaped(sbuf,sessionid.c_str()) << "','" << sql.escaped(sbuf,key) << "','" << sql.escaped(sbuf,value) << "');"; try{ _sessiondb->exec(sql,res); }catch(char *err){ libhttppp::HTTPException excep; excep[libhttppp::HTTPException::Error] << "addSessionData DbError: " << err; throw excep; } }; void blogi::Session::delSessionData(const std::string &sessionid, const char* key){ Loading Loading
src/session.cpp +7 Changes for src/session.cpp: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ #include <iostream> #include <cstring> #include <httppp/exception.h> Loading Loading @@ -126,7 +127,13 @@ void blogi::Session::addSessionData(const std::string &sessionid,const char *key sql << "INSERT INTO session_data (sessionid,key,value) VALUES ('" << sql.escaped(sbuf,sessionid.c_str()) << "','" << sql.escaped(sbuf,key) << "','" << sql.escaped(sbuf,value) << "');"; try{ _sessiondb->exec(sql,res); }catch(char *err){ libhttppp::HTTPException excep; excep[libhttppp::HTTPException::Error] << "addSessionData DbError: " << err; throw excep; } }; void blogi::Session::delSessionData(const std::string &sessionid, const char* key){ Loading