views:

36

answers:

1

I can't find any documentation on the web about how to do this. I think its probably possible to send some sort of custom HTTP header response, but it seems kind of lame to do that if there is a more canonical way.

+1  A: 
theresponse.set_cookie(..., httponly=True, ...)
Alex Martelli