What is the difference bitween cookies and sessions/

Answer Posted / mfsi_satyakamm

Cookies exist in your local hard disk which is stored by the
browser in your local hard disk.

Sessions are used for passing of information as long as you
are using a site. After that session expires.

For example:
Suppose you login to a site using a login name and password.
This login name and password information are stored by the
browser in your local hard disk in form of cookies, so that
when you login next time you don't have to re-enter your
login name and password.

When you finally logged in to the site and start using the
site, then a session starts. Session helps in passing of
information between user and browser. As long as you are
using the site, the session is active and continuously helps
in passing of information. But when you exit from the site
by logging out or just by leaving the site, then the session
expires.


After leaving a site the cookie still exists in your local
hard disk unless you delete it manually. Using this existing
cookie you can login into the same site without providing
user name and password again.

But when you leave a site then the session expires i.e. it
is being deleted and you will never be able to get it. If
you try to re-login again(i.e. after deleting the cookies)
to the site by using the session you won't be able to
re-login as the session has already expired.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are all the things we will include in " what to be tested and what not to be tested" in Test Plan

1743


How do u determine,what to be tested?

1708


What are the roles of glass-box and black-box testing tools?

1735


Hi All I want discuss abt Testing tools is any one available online in google chat?

1696


Is anybody have the telecom systems test cases from start to end?

1667






What is showstopper defect?

777


What is XML Testing? Do we have any tools to test the XML? Please let me know.

1686


What is the difference between system testing and integration testing?

722


what are the different methods to test a product in 'Japanese' language? NOTE:User is unable to perform basic functionalities while using the app..(copy, paste, text selection etc.)

1601


1.what is the approach while writing test cases in your project. 2.tell some intresting scenareo in your project

1927


If project wants to release in 3months what type of risk analysis you do in test plan?

814


How should your staff be managed? How about your overtime?

2867


About Hierarchy level in your company.

1677


When new application ready to test than whats your testing strategies?

1327


What is configuration management in software testing ?

4453