Difference between application and session ?

Answer Posted / ajay gupta

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 ?    33 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why viewstate is used in asp.net?

507


What is caching in asp.net?

562


What is asynchronous call?

584


What is jade template engine?

574


Differentiate between file-based dependency and key-based dependency.

510






Give an example of what might be best suited to place in the application_start and session_start subroutines?

518


What are session state modes in asp.net?

547


Define caching.

621


What is the procedure to create the environment for asp.net? : asp.net mvc

514


Can you clarified A Web service can only be written in .NET or not?

538


What is application Object?

593


Does web services support data reader like pom project?

525


Explain the updatepanel?

580


What is the difference between web.config and machine.config in ASP.NET?

594


What’s the use of “GLOBAL.ASAX” file?

596