Difference between application and session ?
Answers were Sorted based on User's Feedback
Session object is used to store state specific information per client basis. It is specific to particular user.
Application object is used to store data which available across the entire application and shared across multiple users sessions.
Session has the expiration time,default time 20 mints.But application object doesn't have the expiration time.
Session object is used to maintain the session of each user. If one user enter in to the application then they get seesion id if he leaves from the application then the session id is deleted.If they again enter in to the application they get different session id.
But for application object the id is maintained for whole application.it doesn't differ for any user.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / santosh
sessions allows information to be stored in one page and accessed in another and it supports any type of object including your own custom data types.
Application state allows you to store global objects that can be accessed by any client.
The coomon thing b/w session and application is both support the same type of objects retain information on the server and uses the same dictionary -based syntax.
| Is This Answer Correct ? | 3 Yes | 6 No |
What ?ll u do in early and late binding ?
What is the question mark in a url?
What is asp.net architecture?
what are the levels of securities need to be considered for the finincial web application?
What r new things introduced in ASP.NET 2.0 in comparision to ASP.NET 1.1
i wand basic interview based questions in asp.net and vb.net
What do you mean by caching in asp.net?
What is DTS package?
Why would anyone need to implement their own hashtable or linked list?
Is it possible to migrate visual interdev design-time controls to asp.net?
Are xaml file compiled or built on runtime?
How to create events for a control?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)