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.
Asked
Active
Viewed 163 times
0

Albert Einstein
- 7,472
- 8
- 36
- 71

Nikhil Dekhane
- 101
- 1
- 10
-
2Does this answer your question? [ViewBag, ViewData and TempData](https://stackoverflow.com/questions/7993263/viewbag-viewdata-and-tempdata) – Albert Einstein 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