Wednesday, May 21, 2008

Session vs Cookies

Cookies

HTTP cookies, or more commonly referred to as Web cookies, tracking cookies or just cookies, are parcels of text sent by a server to a web client (usually a browser) and then sent back unchanged by the client each time it accesses that server. HTTP cookies are used for authenticating, session tracking (state maintenance), and maintaining specific information about users, such as site preferences or the contents of their electronic shopping carts. The term "cookie" is derived from "magic cookie," a well-known concept in UNIX computing which inspired both the idea and the name of HTTP cookies.
Cookies have been of concern for Internet privacy, since they can be used for tracking browsing behavior. As a result, they have been subject to legislation in various countries such as the United States and in the European Union. Cookies have also been criticized because the identification of users they provide is not always accurate and because they could potentially be a target of network attackers. Some alternatives to cookies exist, but each has its own uses, advantages and drawbacks.
Cookies are also subject to a number of misconceptions, mostly based on the erroneous notion that they are computer programs. In fact, cookies are simple pieces of data unable to perform any operation by themselves. In particular, they are neither spyware nor viruses, despite the detection of cookies from certain sites by many anti-spyware products.
Most modern browsers allow users to decide whether to accept cookies, but rejection makes some websites unusable. For example, shopping baskets implemented using cookies do not work if cookies are rejected.

Seesion

ComputingSession (computer science), also known as a communication session, is a semi-permanent interactive information exchange between communicating devices that is established at a certain point in time and and torn down at a later point in time. Examples are: TCP sessions, HTTP sessions, using session cookies Sessions established by some session layer protocol. Session Description Protocol, a format for describing streaming media initialization parameters Session Initiation Protocol, a computer network protocol often used for IP telephony, and for setting up and tearing down peer-to-peer communication sessions consisting of one or several media streams. Login session Optical disc authoring#Sessions, how data is laid out on an optical disc A group of process groups in POSIX-conformant operating systems

No comments: