Web Programming
PHP Programming
The Difference Between

What is the difference between session and cookies?

Top Answer
User Avatar
Wiki User
Answered 2007-12-28 16:45:01

Cookies persist on your local computer, they are small text files that are stored there by websites and web applications that contain some basic information about you as a user.

Sessions are application specific and persist only as long as you are actively engaged with a particular web site. For instance if you leave open do some shopping, then close the web browser before making any purchases, your session has ended, however the cookie that identifies your username still exists on your local computer.

User Avatar

Your Answer

Related Questions

The session is stored on the web server. The cookies is stored in a little file on users machine. This means that the session is (relatively) secure, whereas the cookie can be edited by the end user.

The difference is water is a ligid and cookies aern't. When you make cookies with sugar in them the sugar doesn'y dissolve like it dissolves in the cookies.

drop cokkies are just cookies drop on the pan with a spoon pan cookies are cooked in cookies pans

the difference between melting sugar in water or baking cookies with sugar in them is that if you bake cookies with sugar in them you making sugar cookies and melting sugar on water is mixing things together

A term lasts two years, but a session lasts four.

Yes. Homemade cookies are much fresher. MMMMMMMMMMMMMMMM.........

Using the remove Attribute tag will just remove the stated attributes from the session. Using session invalidate will terminate the entire session.

Nothing they have diffrent names because screw logic

a term lasts two years, and a session occurs twice in each term.

joint-session is held when is not passed by the both the houses of parliament special sessions are held at the time of emergency

cookie's are harder and brownie's are softer

* The main difference between cookies and sessionsis that cookies are stored in the user's browser, and sessions are not. This difference determines what each is best used for.* A cookie can keep information in the user's browser until deleted. If a person has a login and password, this can be set as a cookie in their browser so they do not have to re-login to your website every time they visit. You can store almost anything in a browser cookie. * The trouble is that a user can block cookies or delete them at any time. If, for example, your websites shopping cart utilized cookies, and a person had their browser set to block them, then they could not shop at your website. * Sessions are not reliant on the user allowing a cookie. They work instead like a token allowing access and passing information while the user has their browser open. The problem with sessions is that when you close your browser you also lose the session. So, if you had a site requiring a login, this couldn't be saved as a session like it could as a cookie, and the user would be forced to re-login every time they visit.

normal cookies, theres no difference

Pretty much the same that happens during the baking of other types of cookies. But there are certain things in the recipe and directions which do make the difference between crisp cookies and other types. The amount of fat in the recipe, the length of time baked, as well as how thin or flat the cookies are before baking are things which can make the difference between crisp cookies and other types of cookies

Soft cookies are just that - soft and moist all the way though. Hard cookies a quite crispy, with the crunch going all the way through the cookie.

Soft Cookies are soft and tast nicer and crunchy cookie are hard and arnt as nice does this help?

She enjoys doing 'spot the difference' puzzles.There is a difference between happy and sad.What is the difference between these two cakes?

Algerian sugar cookies contain semolina flour not regular unbleached sifted flour like most kitchens.

log in means you have got an account- sign in only for session.

The only difference is that cakes are larger than a cookie. Other than that they are quite similar.

While providing much of the same functionality, a session variable will be deleted at the end of the users session, or visit to your page. A cookie will not expire until the time indicated when it was created. I believe session variables are considered more secure.

Back benchers sit at the back when Parliament is in session.

When you're baking cookies, if you use shortening instead of butter, your cookies come out higher. They don't spread as much as they do with butter, so your cookies turn out like the ones in the pictures instead of flat.

A session key is a temporary encryption keyused between two principals.A master key is a long-lasting key that isused between a key distribution centre and aprincipal for the purpose of encoding thetransmission of session keys.Typically, the master keys are distributed bynoncryptographic means.

A session key is a temporary encryption key used between two principals. A master key is a long-lasting key that is used between a key distribution centre and a principal for the purpose of encoding the transmission of session keys. Typically, the master keys are distributed by noncryptographic means.

Copyright ยฉ 2021 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.