0

Session variables use cookies to store the session id at the client-side and data is stored on server application memory with that session id. I tried searching it but I did not get where does data of ViewData, ViewBag, Tempdata gets stored. One of the Stack Overflow posts says they are a transient object, but it did not answer where they actually get stored.

Kiran Shahi
  • 6,738
  • 6
  • 35
  • 66
Nikhil Dekhane
  • 91
  • 1
  • 10
  • 2
    Does this answer your question? [ViewBag, ViewData and TempData](https://stackoverflow.com/questions/7993263/viewbag-viewdata-and-tempdata) – Kiran Shahi Nov 28 '19 at 03:25
  • @KiranShahi, Thanks :) TempData uses Session internally. But not sure about ViewData and ViewBag. – Nikhil Dekhane Nov 28 '19 at 05:15

0 Answers0