2010-04-15 50 views

回答

3

App Engine支持版本2.5的Servlet API,因此您不能使用setHttpOnly方法。

你可以尝试自己输出cookie头。

resp.setHeader("Set-Cookie", "A=7; expires=Fri, 31-Dec-2010 23:59:59 GMT; path=/; domain=.example.net; HttpOnly"); 
+0

这是'安全'证明吗? – 2010-04-15 02:06:30

+0

我想它不适用于HTTP,但可能适用于HTTPS。 – 2011-09-12 23:56:21