Thanks for your reply.

I tried both subscribing to NewResponse and adding a tween above main, but it seems that the session is working above INGRESS which I cannot override, because there is no "set-cookie" header in the response object.

Unless I'm doing something wrong it seems I'd have to subclass UnencryptedCookieSessionFactory and override _set_cookie to call parent in "normal" responses and do nothing if the view has injected "X-No-Session" in the headers (which should be removed), or something like that.



.oO V Oo.


On 03/10/2012 06:18 PM, Jonathan Vanasco wrote:
off the top of my head, you could use a subscriber.

you should be able to write something for NewResponse that strips
whichever cookies you want.

i wrote a package that does pretty much the exact opposite of what you
want...
     https://github.com/jvanasco/pyramid_subscribers_cookiexfer

that should help you get a subscriber based solution working in
minutes.

I'd be really interested to see how you ultimately fix this -- i'm
looking to deploy something with nginx too... so i'll be in your
situation shortly.


--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to