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 events will occur when a page is loaded?
A web service can only be written in .net? State whether true or false.
To call a Web service SOAP which transport protocol you use?
Question asked by one of interviewer in panal is given below: We have 2 user control on same page ,1st user control contains textbox and a button while 2nd user control have label. when ever we click on button click of 1st custom control button the value of the textBox will get updated into Label of 2nd custom control. How to do this.Your help will be appreciated.
what is profiles in asp.net
Can any one explain with the example how to capture the application error in Aplication_Error() method?
What is the difference between CLICK and MOUSE DOWN Event ?
What is the parent class of all web server control?
What are the various types of cookies in asp.net?
what is asp and asp.net ?
2 Answers Inspira Technologies,
What is the asp.net control toolkit?
where should write the connection string Show that it will apply whole pages in the website