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
What are the main key components in client and server applications?
hai friends i need a general test cases for check box,drop down button and radio butoon can anybody reply me plz..........thanks in advance
how to write test cases for epos/pos testing.
What are the review documents used for testing?
What is localization testing (l10n testing)?
What are the modules of quality center?
How to test a Falsh player scrollings?
Explain the components of a test plan?
Can automation testing replace manual testing?
What are drawbacks in system development life cycle
can any one send sample test cases for database testing by taking an example? also leave emailid please. thanks (very urgent)
When did u complete testing ? Which scenrio should not be in automation testing ? why ?
Explain the strategy for testing a Java application?
What different types of manual testing are there?
How does compatibility testing differ while testing in Internet explorer and testing in Firefox?