Commit c31404c6 authored by jan.koester's avatar jan.koester
Browse files

fixed

parent 7305c478
Loading
Loading
Loading
Loading
+7
Changes for src/session.cpp: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *******************************************************************************/

#include <iostream>
#include <cstring>

#include <httppp/exception.h>
@@ -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){