How to use session in asp.net mvc Ask Question
By   Junaid A     23-Apr-2024    2 How to Make Seesion Value From User Table How to Use session IN Layout Page For User Role Task

Solutions


Junaid A

- Session in .net saves data similar to a Dictionary object i.e. Keys and Values where Keys are String while Values will be objects. e.g string, number, object (single object, list, array) - While retrieving, the data it needs to be converted to its original data type as the data is stored as objects and it also requires NULL checks while retrieving. - Session is used for passing value from Controller to View and also from one Controller to another. - Session is available across multiple requests. It is not destroyed on redirection. - Session time out default value 30 mints

10235
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM
03
07

New Messages

George Floyd
  • Edit Post Edit This Post within a Hour
  • Hide Chat Hide This Post
  • Delete Chat If inappropriate Post By Mistake
  • Report Inappropriate Chat
  • 4.5kb
  • Hi James! Please remember to buy the food for tomorrow! I’m gonna be handling the gifts and Jake’s gonna get the drinks
  • Hi James! Please remember to buy the food for tomorrow! I’m gonna be handling the gifts and Jake’s gonna get the drinks
  • Hi James! Please remember to buy the food for tomorrow! I’m gonna be handling the gifts and Jake’s gonna get the drinks