27158

Cookie only sets in IE and not firefox/chrome

Question:

I have an ASP.NET 2.0 web application. Cookies worked fine on all browsers on windows server 2008 for several years.

We upgraded to a new server with windows server 2012(IIS8), the first day during testing cookies were not being set in firefox so we could not login(not sure about chrome). Next day, with no changes, it seemed to all work OK.

Fast forward another month or so, firefox and chrome will not set the cookies (looking in chrome dev tools and firebug) but its still working in IE and I can see the cookie set in IE dev tools.

Cookie values are being set though

<blockquote>

HttpContext.Current.Response.Cookies[][]

</blockquote>

Does anyone have any clue why this might be, or where I should start trying to diagnose this issue?

Answer1:

We had the same issue on our dev server and spent hours to find the root cause for it. Login would work on IE but not on FF and Chrome. We finally got the problem. Not sure how relevant our solution will be for others, but I thought I will post it here and it may help out someone someday.

In our case, after trying a lot of things we finally restarted the server and then came to know that the SSL certificate has expired and that is what was causing the issue. Disabling SSL completely made login work again. We renewed the SSL and enabled SSL and everything is fine now.

Recommend

  • Execute function after User Login Symfony 2.3
  • Session management in GWT client side
  • Is storing an OAuth token in cookies bad practise?
  • Losing session in Coldfusion
  • yii2 create translated URLs
  • IP and domain create different session
  • IIS7 Application Request Routing HTTPS
  • something very wrong with SESSIONS
  • Selenium and Google - How do you use cookies?
  • How to get list of users who's birthday is today in MongoDB
  • How to make a user wait with Laravel
  • How to use arithmetic operators with SAS macro variables [duplicate]
  • how to display   in Mozilla using XSL.
  • Is there a way to set up a fallback for the formAction attribute in HTML5?
  • Problems with toDataURL HTML5 other ways to get canvas data?
  • Sending cookie value via httpget but not getting the desired response
  • Find Previous month name using Calender or any classes that in java
  • Check all values in string[] for length?
  • Invalid Date on validation Date of js
  • Is playing sound in Javascript performance heavy?
  • Is there a way to do normal logging with EureakLog?
  • Chrome doesn't support silverlight anymore? How to solve this?
  • Django rest serializer Breaks when data exists
  • Asynchronous UI Testing in Xcode With Swift
  • Recording logins for password protected directories
  • Display issues when we change from one jquery mobile page to another in firefox
  • Is there any way to access browser form field suggestions from JavaScript?
  • Ajax jQuery multiple calls at the same time - long wait for answer and not able to cancel
  • Javascript convert timezone issue
  • Large data - storage and query
  • R: gsub and capture
  • 0x202A in filename: Why?
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Comma separated Values
  • Getting error when using KSoap library to consume .NET web services
  • How to set the response of a form post action to a iframe source?
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • reshape alternating columns in less time and using less memory
  • How to load view controller without button in storyboard?