Aakash N

Aakash N

  • NA
  • 166
  • 19.4k

Session variables are not changing on IE

Jan 4 2019 9:47 AM
I am working on a project where we use SQLCache to store session variables and get from the DB. In Chrome and other browsers the set and get are working normal, but in IE these session values are not getting changed after 2nd change from a dropdown. 

I have also, configured my startup.cs to not store ResponseCache as shown below:
  1. services.AddMvc(options =>  
  2.             {  
  3.                 options.CacheProfiles.Add("Never",  
  4.                     new CacheProfile()  
  5.                     {  
  6.                         Location = ResponseCacheLocation.None,  
  7.                         NoStore = true  
  8.                     });  
  9.             }).SetCompatibilityVersion(CompatibilityVersion.Version_2_1).AddSessionStateTempDataProvider();  

Can someone help me in fixing this issue on IE.

Thanks!!

Answers (1)