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 is the difference between Sleep and wait in winrunner what is integration testing and types of testing present what is system testing what is data driven testing what is functionality testing if requirements are given to you then how do you write the test cases for it Account number = Ok cancel For above given form the valid account number starts from 1 to 1000 so is it necessary to input the 1,2,3 ….998,999,1000 test cases to check the conditions of valid account numbers I,e is it compulsory to write 1000 test cases for the above form

2150


Explain Single View Testing ?

1006


When we are recording in WinRunner and interact with the AUT, what does WinRunner do?

1609


What is big bang approach?

798


If there is non reproducible bug which developer is not ready to agree, how you will convince him.

7635






How can I do Server side Interface testing in Web Testing?

3218


Can you explain function points?

701


1.Acceptance testing involves procedures for identifying acceptance criteria for interim life cycle products and for accepting them.is that? 2.Acceptance testing occurs only at the end point of the development process; it should be an ongoing activity that test both interim and final products.is it?

1874


what is the common in all s.o.p (standaed operating procedure)?

1514


What is white box testing?

762


I HAVE AN INTERVIEW IN A SOFTWARE COMPANY FOR THE POST OF FUNCTIONAL TEST ENGINEER. THEY WANT THE PERSON FROM BCOM BACK GROUND( I AM A BCOME GRADUATE 2006) AND THE PERSON SHOULD HAVE GOOD ACCOUNTS KNOWLEDGE. NOW I WANT TO KNOW WHAT KINDS OF QUESTIONS THEY CAN ASK OR CAN GIVE IN WRITTEN TEST. I M NERVOUS COZ ITS BEEN 5 YEARS I HAVE DONE BCOM. SO HOW SHUD I PREPARE FOR INTERVIEW.PLEASE HELP? reply me pls. its urgent. thanks

1564


What is smoke test?

721


What is early testing?

685


Pls u can u r mail id to my personal mail id also if they dont want to give u r mail id n comman place

1545


1.Tell me negative test cases for notepad 2.Tell me the factors for for writing severity based test cases

5558