A brief difference between Session and Cookies in asp.net

Answers were Sorted based on User's Feedback



A brief difference between Session and Cookies in asp.net..

Answer / uday kumar vuriti

We use both Session and Cookies to maintain state between
the page postbacks. We can achieve state management using 2
ways.

1. Client Side Technique (using hidden fields, query string,
view state and Cookies)

2. Server Side Technique (using Session and Application)

Cookies will store data in client side either in browser or
in system hard disk.

Session will allocates memory in the web server and for
every user server will allocates memory. So Session is per
user based.

Is This Answer Correct ?    63 Yes 4 No

A brief difference between Session and Cookies in asp.net..

Answer / guest

session is server side which is store in server memory and
every user having doifferent id .

cookies are store at clinet side either in browser or hard disk

both are used for page post back

Is This Answer Correct ?    35 Yes 5 No

A brief difference between Session and Cookies in asp.net..

Answer / vikram

1.session is a sever side state management.
2.session is used session id to identify the clients
3.session by default time is 20 min
cookies
1.client side state management
2.browse can can hold up to 60kb

Is This Answer Correct ?    7 Yes 5 No

A brief difference between Session and Cookies in asp.net..

Answer / johny shaik

cookie
cookie is client side state management technique and it is a "small information which is stored on the browser in plain text format" cookie is created on the server and stored on the browser.

session
session is server side state management technique and "is used to maintain the state of the response on the server upto particular time period" and default time out o session is 20 minutes. session is created on the server and session id is stored on the browser in form of cookie...

Is This Answer Correct ?    1 Yes 0 No

A brief difference between Session and Cookies in asp.net..

Answer / d.shanmugapriya

session is like your email id. when u open ur email id. it
show entire frame work. when u closed email then only is closed.
Cookies:
Is like ur google(igoogle) igoogel is used u can change ur
backgruound google page. but not entire server page .

Is This Answer Correct ?    3 Yes 13 No

Post New Answer

More ASP.NET Interview Questions

How to stop the inheritance?

2 Answers   TCS,


What is the Difference between MVC And MVP design pattrens

0 Answers   Symphony,


How you can manage the state of application at the server side in ASP.NET?

0 Answers  


What is viewstate? What does the “enableviewstate” property do?

0 Answers  


Explain serialization and deserialization?

0 Answers  


How many types of sessions are there in asp net?

0 Answers  


About the Usage of htmlencode and urlencode ?

2 Answers   Cognizant,


hi i have a problem regarding to datagrid in aspdotnet.i have a datagrid in my application.i have to place add,edit,delete buttons or links what ever it may be. now the problem is if i click on add button then the page has to redirected to another form called "xyz.aspx" and if i click on edit button the page has to redirected to another form called "abc.aspx".i am phasing the problem that if where ever i click on the datagrid the cursor goes to gv1_SelectedIndexChanged event.please tell me the solution about the code.

4 Answers   Lambent,


What is base class of .net?

0 Answers  


Difference between abstract factory pattern and factory method pattern in .NET with example.

3 Answers   ACS, IBM, Keane India Ltd,


I need some questions regarding asp.net for 1.5yrs of Experience.

1 Answers  


What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?

0 Answers  


Categories