What are Sessions?

Answers were Sorted based on User's Feedback



What are Sessions?..

Answer / manikanta.srinu

Web is Stateless, which means a new instance of the web
page class is re-created each time the page is posted to
the server. As we all know HTTP is a stateless protocol, it
can't hold the client information on page. If user inserts
some information, and move to the next page, that data will
be lost and user would not able to retrieve the
information. So what we need? we need to store information.
Session provides that facility to store information on
server memory. It can support any type of object to store
along with our custom object. For every client Session data
store separately, means session data is stored as per
client basis.

Is This Answer Correct ?    9 Yes 1 No

What are Sessions?..

Answer / raja

Sessions can be used to store even complex data for the user just like cookies. Actually, sessions will use cookies to store the data, unless you explicitly tell it not to. Sessions can be used easily in ASP.NET with the Session object. We will re-use the cookie example, and use sessions instead. Keep in mind though, that sessions will expire after a certain amount of minutes, as configured in the web.config file.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More Dot Net General Interview Questions

What security measures exist for .NET Remoting in System.Runtime.Remoting?

1 Answers  


How do you create threading in .NET? What is the namespace for that?

2 Answers  


What are the two kinds of properties.

2 Answers   Wipro,


Is string a value type or a reference type?

4 Answers  


The project which you have made, which methodology did you use?

0 Answers   Wipro,






Explain is the jit an interpreter?

0 Answers  


What is the difference between .net 2000 and .net 2005(features)? Which one is better?

0 Answers  


Tell me about secure socket layer? How to make use of the technology?

0 Answers  


Name for built-in permission sets in .Net

1 Answers  


what is machine key error in .NET how can we solve it?

0 Answers  


What is alias ? Is it used in .Net ?

0 Answers   MCN Solutions,


What are the contents of assembly?

4 Answers   ABC, Ksb,


Categories