How to use session in asp.net mvc Ask Question
By   Junaid A     17-Dec-2024    1 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