[mod_python] Cookie

Bill Eldridge bill at rfa.org
Thu Jul 3 10:07:44 EST 2003


PSO also has a session module that can be split off for
mod_python:

http://www.scriptfoundry.com/modules/pso/doc/session-modpython.html
http://www.scriptfoundry.com/modules/pso


Gregory (Grisha) Trubetskoy wrote:

>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
>>
>>    
>>
>_______________________________________________
>Mod_python mailing list
>Mod_python at modpython.org
>http://mailman.modpython.org/mailman/listinfo/mod_python
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20030703/42c7f02a/attachment-0003.htm


More information about the Mod_python mailing list