ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Microsoft Related >> ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1443)
 VB.NET interview questions  VB.NET Interview Questions (150)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (33)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
Question
Difference between application and session ?
 Question Submitted By :: ASP.NET
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
session object is used to store information between http
request for a particular user. Application are globally
across users.
 
Is This Answer Correct ?    74 Yes 8 No
Shiva
 
Answer
# 2
application :Global User
Session :Single User
 
Is This Answer Correct ?    53 Yes 6 No
Mahendran
 
 
 
Answer
# 3
Both Application and session state are used to store the
data when the postback occurs in the web form.

Session State Session State information is available to
all pages opened by a user during a single visit.

Application State - Application State information is
available to all pages, regardless of which user requests a
page.
 
Is This Answer Correct ?    34 Yes 1 No
Sangeetha
 
Answer
# 4
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 Correct ?    30 Yes 4 No
Ajay Gupta
 
Answer
# 5
Session & Appl r parts of State Management ...

if v session one object in one form v can use it in all
forms untill the project stop's.....

but,
In Appl state if v store value it may use throughout
applacation even stop and restart it so it is very useful
for permanent data...

EX:In Some website they ll display the visitors no by
incrementing Application State data by One each time a
application Restarts.......
 
Is This Answer Correct ?    38 Yes 20 No
Vicky's
 
Answer
# 6
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.

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 ?    9 Yes 3 No
Maneesh Upadhyay
 
Answer
# 7
Application state is a global storage Mechanism that is accessible from all pages in the web application.

Session State is similar to application state, except that it is scoped to the current browser session. If different users are using your application each user session will have a different session state.

In addition, if a user leaves your application and then returns later, the second user session will have a different session state from the first.
-----------------------------------------------------------
Both application and session state is useful for storing information that needs to be maintained between server roundtrips and between requests for pages.
 
Is This Answer Correct ?    9 Yes 3 No
Ezhil Dinesh
 
Answer
# 8
Dear All,

Application Scope : is Mintained state for application like
if we have to retrive how many user connect application, how
many are alredy used..etc.

Session : is a globle scope like for one HTTP request we
have pass information form one JSP to another JSP.

if my view is wrong..please correct me .

Thanks.
 
Is This Answer Correct ?    7 Yes 3 No
Zakeer
 
Answer
# 9
Application object is used to provide state for the Required Data.


Session object is used to provide state for the Userdata. .we can create session when user login..
 
Is This Answer Correct ?    4 Yes 0 No
Narendra
 
Answer
# 10
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
Santosh
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What you mean by partial Class in asp.net 2.0? TCS 3
What is a Windows Service and how does its life cycle differ from a standard EXE?   2
Difference between datagrid and datareader?   1
what is webservices. howit is use in our project . Patni 1
how to edit gridview control in asp.net2.0 3i-Infotech 1
How to remove themes from certain controls?   2
Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one?   1
I have around 200+ controls in a page. Each of the sets of controls are kept in divs and when header div is clicked, only those div controls pertaining to that header div will be displayed. Rest of the divs are kept invisible. When the page loads, all these 200+ controls are loaded simultaneously, that consumes much of the time. What my requirement is I want to get the div1 controls loaded when the page loads and rest of the div controls should be loaded asynchronously. it should not be loaded with page load, so that time for loading the page can be much minimised. Hope u understood my question and pls help me out with a solution asap....   2
When Garbage Collector runs in an Application? 1)Application is running form more than 30 min. 2)On every 1/4th milisecond 3) Randomly 4) Application is running on low of memory PCS 2
can we call webservice in Html form? Microsoft 1
When during the page processing cycle is ViewState available?   1
Which control would you use if you needed to make sure the values in two different controls matched?   3
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com