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

Scenario-based testing Option 1 concentrates on actor and software interaction Option 2 misses errors in specifications Option 3 misses errors in subsystem interactions Option 4 Both 1 abd 2

3041


what types of testing you performed in transfer funds module....

1176


What is test driver and test stub?

700


what are the common errors while doing integration,system,functional,regression,user acceptance testing? can anybody please let me know the answers it is too urgent???

1581


What about manual testing opening in bangalore in September. Not getting a single interview call from last one month.

1576






hi friends i recently finished testing course in hyderabad.now am looking for a job in uk.i need help about the projects in interview point.can any one explain me abt banking project or credit card.like what are the problems faced in u r last project etc.

1411


i have source and target having same data structure 500 fields and one lacks records. how to validate data. write 5 scenarios.

4807


Zenq interview questions for manual testing

1407


What are drawbacks in system development life cycle

1715


What is srs and brs document?

699


How will you set the Dependency in the Quality center? Say if you will fail a test case and two or more test cases are dependent on that particular test case. In this case how will you handle in failing the test case.

2236


How do u prepare test environment for ur application?

1677


what is your daily activities?

1667


Can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1497


How could we start writing testcases without having the FRS,BRS Docs? My Project has some docs that are related to explain the operations which will be done in the application. It is deployed in UAT server and is a maintainance project. Tell me some technipues or best way to provide the quality to application?

1722