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
Wat type of questions ll be asked in interview for an 1-2 yrs. experinced persond and i need some database concept question in testing.
What is known as data-driven testing?
Hi I want to start online training couses for testing Any body plz help me out how to start the online courses Plz post the answer here or send me a mail for kommineni.1020@gmail.com
How should your staff be managed? How about your overtime?
Write positive and negative test cases for forgot password?
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.
What about the test case if the field only takes a certain number of characters or a minimum number?
Can you explain usability testing?
Test cases have written according to Flow of the software working or according to Screens?
why QA team is necessary for an organization?
What are the various test case for google analytics, api keys , pay pal if you know please post me a answer. And how we will test
What is state transition?
List the type of testing perform to test microsoft excel 2003 give atleast 1 example of each type
need answer interviewer will ask me about all project which i mention in resume or presently i'm working??please reply tomorrow is my interview
Give the real-time example for back-to-back testing?