2

Since IE10 has installed on my Windows 7 box, it is impossible to login into my application... It was OK with IE9 and it still OK with FF and Chrome.

The problem is that session cookies (jsession id) are not send by IE when doing ajax request (POST or GET).

I've seen on SO many trouble with IE10 and cookies but no one can applied to my problem : IE10 User-Agent causes ASP.Net to not send back Set-Cookie (IE10 not setting cookies) jquery ajax $.post not working IE10 IE10 sharing cookies across subdomains by default

I precise that I'm not crossdomain. I use a Jasig/CAS for authentication and CAS cookies nor session cookies are send by ajax request. Ajax request are send via JQuery (last version).

Any help would be greatly appreciated.

Thanks in advance.

EDIT1:

I tried all IE security options and the last do not track without success.

EDIT2:

I try Google Chrome Frame into my IE10 with adding but nothing better.

Community
  • 1
  • 1
jmcollin92
  • 2,896
  • 6
  • 27
  • 49
  • 1
    Not sure if this is your problem at all, but I had something like this with a _ (underscore) in a subdomain name, and that caused no end of problems with IE and cookies. Removing the _ from the domain name fixed it. You didn't specify a domain, so I have no idea if that could be it... – Mark Ormston Apr 06 '13 at 23:01
  • I'm in test. So my domain name is localhost. With no _. I try also in a real environment (https://integ.clouderial.com) and the problem is the same. – jmcollin92 Apr 06 '13 at 23:08
  • @MarkOrmston : here you will find a very post explaining why _ is not supported by IE : http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx?PageIndex=5#comments – jmcollin92 Apr 07 '13 at 08:37
  • 1
    I opened a ticket on MS connect : https://connect.microsoft.com/IE/feedback/details/783147/ie10-redirect-on-ajax-request-not-always-followed – jmcollin92 Apr 07 '13 at 10:40

2 Answers2

3

I've found what happens, and it can be usefull for others. @Mark Ormston was not so far : Cookies set with path /cas are send by IE10 to URL beginings with /cas-services

In my case /cas and /cas-services are not in the same WebApp and each have its own JSESSIONID. Sending JSESSIONID created for /cas to /cas-services lead to the problem describe above.

To correct, I simply rename /cas-services with /app-services (I guess that everything not beginning with /cas should work).

JM.

jmcollin92
  • 2,896
  • 6
  • 27
  • 49
0

I've had a similar problem and just added to the Web.Config in IIS cookieless="UseCookies" in the Authentication section.