在302重定向期间发送浏览器Cookie [英] Sending browser cookies during a 302 redirect
问题描述
在302重新导向期间传回Cookie有什么问题吗?例如,如果我创建一个返回到url的cookie并在同一个响应中重定向用户,任何(现代)浏览器都会忽略该cookie?
Are there any issues with sending back a cookie during a 302 redirect? For example, if I create a return-to-url cookie and redirect the user in the same response will any (modern) browser ignore the cookie?
推荐答案
大多数浏览器都接受302重定向的Cookie。我相当肯定,但我做了一个小搜索。并非所有现代浏览器。 http://connect.microsoft.com/VisualStudio/feedback/details/586916/silverlight-client-http-stack-忽略-set-cookie-on-302重定向响应
Most browser are accepting cookies on 302 redirects. I was quite sure of that, but I made a little search. Not all modern browsers. http://connect.microsoft.com/VisualStudio/feedback/details/586916/silverlight-client-http-stack-ignores-set-cookie-on-302-redirect-responses
我想我们现在有一个替代IE6和它的Windows Mobile浏览器...
I think we now have a replacement for IE6 and it's Windows Mobile browsers...
这篇关于在302重定向期间发送浏览器Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!