Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Firefox(windows7) v26 not setting cookie in a 302 redirect, other browsers does

  • 5 个回答
  • 12 人有此问题
  • 5 次查看
  • 最后回复者为 guigs

more options

I am using firefox v26 for windows. My os is windows7. I am using SAML security mechanism for my application, I am creating a cookie in sso web application as follows Cookie cookie = new Cookie(ACCESS_TOKEN, "accessToken"); cookie.setPath("/"); cookie.setDomain(".domain");

after creating cookie in sso I am redirecting to my application. Firefox is not setting this cookie, chrome, IE, safari are setting the cookie. sso and my application are hosted on different servers but ".domain" part is common to both dns.

I am using firefox v26 for windows. My os is windows7. I am using SAML security mechanism for my application, I am creating a cookie in sso web application as follows Cookie cookie = new Cookie(ACCESS_TOKEN, "accessToken"); cookie.setPath("/"); cookie.setDomain(".domain"); after creating cookie in sso I am redirecting to my application. Firefox is not setting this cookie, chrome, IE, safari are setting the cookie. sso and my application are hosted on different servers but ".domain" part is common to both dns.

所有回复 (5)

more options

I don't have easy access to an ASP.Net server for testing. Does your Firefox work in an Apache/PHP scenario?

Here's the destination page: https://jeffersonscher.com/res/jstest.php

If you load that and reload it, you should see that there are no cookies in the HTTP Request headers.

If you use the redirector page to access the destination page, you now should see a cookie when you reach the destination page: https://jeffersonscher.com/res/redirme.php

Does it work?

more options

In case you have not confirmed, please open Firefox's web console (Ctrl+Shift+k) and open the redirect page again. Click the URL of the redirect page to confirm that Firefox is seeing the cookie as part of the response. (Screen shot example attached.)

more options

I can see cookie set in this case. Here destination page https://jeffersonscher.com/res/jstest.php and redirecting page https://jeffersonscher.com/res/redirme.php are of same domain jeffersonscher.com, but in my case its like below destination page : 'a.b.domain' redirecting page : 'x.y.domain'

I am creating a cookie in redirecting page as in my first post, I am using java/tomcat. In all other browsers cookie getting set but not in firefox.

more options

If you view the SET-COOKIE header in Fiddler or another proxy, can you confirm that you have the base domain set? For example, from this new page that redirects across subdomains on two different servers:

http://www.jeffersonscher.com/res/redir2.php

HTTP/1.1 302 Found
Date: Mon, 03 Feb 2014 03:28:42 GMT
Server: Apache/2.0.52 (Red Hat)
X-Powered-By: PHP/5.3.24
Set-Cookie: redir2Cookie=OatmealRaisin; expires=Mon, 03-Feb-2014 03:38:42 GMT; path=/; domain=jeffersonscher.com
Location: http://dev.jeffersonscher.com/jstest.asp
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
more options

Yup, and to tell if it is a server or a browser issue the 302 error will say found or not found. It if is found then it redirected successfully in the browser. If it was not found there is not response or it is a redirect loop.

I do not know if this is a browser or server issue, but to tell the information will be in the response cookie.

Please check the cookie to make sure the Location is set in the redirect loop. What version of open SAML are you using?