On 8 February 2012 16:25, Евгений Негрий <[email protected]> wrote:
> I create SimpleCookie from module Cookie. I add SimpleCookie.output()
> in os.environ. I do print os.environ and I see my cookie, but when I
> go in other page and I do print os.environ too, I don`t found my
> cookie!

When writing WSGI applications you never deal with os.environ. Cookies
are read from 'environ' argument to application and written to
response headers passed to start_response().

What I strongly recommend you do, instead of starting at the WSGI
level, is to use a WSGI micro framework such as Flask. It has builtin
functionality which does all the hard work of dealing with cookies and
lots of other stuff which is fiddly if you do it yourself.

http://flask.pocoo.org

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to