Difference between application and session ?
Answer Posted / sumitpalsingh
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 |
Post New Answer View All Answers
Can a .net web application consume java web service?
What are the difference between function and stored procedure in .net programming language?
What are navigation controls? How many navigation controls are there in ASP.NET 4.0?
explain code with multi inhertance
if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.
Can we have multiple web config files for an asp.net application?
Distinguish between Server-side and Client-side code?
What is a multilingual website?
What are the differences between clr & cts?
Any disadvantages in Dataset and in reflection ?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
How to register exception filter globally?
Why asp.net is better than php?
What is the difference between client-side and server-side validations in webpages?
How you can stop the validation of ASP.NET controls from client side?