From: Gonzalo A. <ga...@us...> - 2006-09-12 00:26:50
|
Update of /cvsroot/mod-c/ehtml/src In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4490/src Modified Files: Response.cpp Log Message: * Added Response::SetCookie(const string& name, const string& value) method. Index: Response.cpp =================================================================== RCS file: /cvsroot/mod-c/ehtml/src/Response.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Response.cpp 6 Mar 2006 08:00:36 -0000 1.2 --- Response.cpp 12 Sep 2006 00:26:47 -0000 1.3 *************** *** 27,28 **** --- 27,35 ---- { } + + void Response::SetCookie(const std::string& name, const std::string& value) { + string val(name + "=" + value + "; path=/"); + apr_table_set(RequestContext->r->headers_out, + "Set-Cookie", val.c_str()); + } + |