Use of Cookies for advertisements:
A cookie is also used by advertising agencies. An advertising agency can place banner ads on some main website that is often visited by users. The advertising agency supplies only a URL that gives the banner address instead of the banner itself. When a user visits the main website and clicks on the icon of an advertised corporation, a request is sent to the advertising agency. The advertising agency sends the banner, a GIF file, for example, but it also includes a cookie with the ill of the user. Any future use of the banners adds to the database that profiles the Web behaviour of the user. The advertising agency has compiled the interests of the user and can sell this information to other parties. This use of cookies has made them very controversial. Hopefully, some new regulations will be devised to preserve the privacy of users.
Fig. Use of Cookies in advertisement
OR
* Figure below shows a scenario in which an electronic store can benefit from the use of cookies. * A shopper wants to buy a toy from an electronic store named BestToys.com. * The Server sends the Webpage, but it also includes a cookie with the ID 12343. * Using this a file is created such that the information clicked by the user is sent and stored in the file, which are used by the server.