Gregory (Grisha) Trubetskoy
grisha at modpython.org
Wed Jul 2 17:31:20 EST 2003
Something like this: c1 = Cookie.SimpleCookie("cookie1=value1") req.headers_out["Set-Cookie"] = c1.output(header="").strip() c2 = Cookie.SimpleCookie("cookie2=value2") req.headers_out.add("Set-Cookie") = c2.output(header="").strip() Using the standard lib Cookie module is a bit ugly with mod_python because Cookie was designed with CGI in mind, which is why the next release of mod_python will have its own Cookie module. Grisha On Wed, 2 Jul 2003, Alexiev Nikolay wrote: > I want to save 2 cookies using mod_python & Cookie modul. Can somebody help > me, please? > 10x > > Best regards, > Alexiev, Nikolay > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|