开发者

Why can't I set a cookie and redirect?

开发者 https://www.devze.com 2022-12-09 15:36 出处:网络
I\'m having a problem setting a cookie and doing a 302 redirect In chrome the cookie is not being set (I haven\'t tested safari), in other browsers I was having the same problem until I added Path=/ t

I'm having a problem setting a cookie and doing a 302 redirect

In chrome the cookie is not being set (I haven't tested safari), in other browsers I was having the same problem until I added Path=/ to the cookie an now it works.

This is how the header looks; the status is 302 Found

Content-Type  开发者_Python百科  text/html; charset=iso-8859-1
Expires Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie  alasca-flash=error-Message<Required<error-Name<Required<error-Sex<Required<error-Age<Required<;Path=/
Location    /messages/sdf
Content-Length  0
Server  Jetty(6.1.x)

Any idea on why the cookie is not set? Or any workaround?


See this question: Safari doesn't set Cookie but IE / FF does

It mentions this bug report in WebKit (due to AFC)

0

精彩评论

暂无评论...
验证码 换一张
取 消