Session cleared on POST

  • Thread starter Thread starter surya_8
  • Start date Start date
S

surya_8

Guest
I have an application built on MVC C#, that has been running for around like 6 years, and recently there is a problem with "Sessions", ie., when the user does a transaction, if 3ds is required, they would be taken to the 3ds page, and we would normally receive a postback with the status, and Sessions were used to hold the temporary data on this, and now these Sessions are being cleared on postback and its null.

We tested this on the local development machine, and even tried using a new bare MVC C# Web Application, created straight out of the template, and there too, the Sessions were being cleared, and strange enough, only when being receiving a postback from the 3ds page, the other postbacks works as expected.

Additionally, the sessions were being active (on the bare Web app) when we tried opening them on a new window, and when being postbacked it gets cleared, only on the page when the 3ds lands, on the rest of the pages it works.

We use MVC 5.2.7 with C# .Net Framework 4.8

We tried looking up on the various session related issues posted on SO and tried out the solutions marked, but none worked.

Continue reading...
 
Back
Top