GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 98 of 164    Print  
State the difference between a Session and an Application

  
Total Answers and Comments: 6 Last Update: August 11, 2009     Asked by: lakshminarayanan 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 20, 2006 05:55:09   #1  
anithasri        

RE: State the difference between a Session and an Appl...

the 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


 
Is this answer useful? Yes | No
December 24, 2006 02:50:03   #2  
shree        

RE: State the difference between a Session and an Appl...

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 useful? Yes | No
January 11, 2007 14:05:27   #3  
roopali        

RE: State the difference between a Session and an Appl...
application state is a state where we hav the information that is global for the application
where as
session state is a state which is maintained as a per-client basis.
whenever a user first accesses a page a session id is generated by asp.net.
that session id is then transmitted between the client and the server via Http either with the help of client-side cookies or encoded in a mangled sessions of the urls.
so the next time the users accesses state associated with that session id can be viewed or modified.

 
Is this answer useful? Yes | No
February 19, 2007 16:00:15   #4  
yv_harish        

RE: State the difference between a Session and an Appl...
Question is vague......It should be.......According to the answers poated
What is the difference between Session object and Application object?

 
Is this answer useful? Yes | No
September 19, 2008 09:32:21   #5  
Inturi Member Since: September 2008   Contribution: 2    

RE: State the difference between a Session and an Application
1) Application object is created when first request comes to the web server related the web application. Inside the application sessions will be created.

2) Application variables are global. you can access across the sessions. where as the session variables are related to particular session only.

 
Is this answer useful? Yes | No
August 11, 2009 00:41:47   #6  
prasanth868 Member Since: April 2008   Contribution: 1    

RE: State the difference between a Session and an Application
Application state is global to the application regardless of the number of application instances. All instances share the same application state variables. Each instance has its own session variables. They are stored at the server end. One use of session is to store the user login status its privileges etc.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape