O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.12 SUMMARY OF WAYS TO USE A FUNCTION

Apart from a normal interpretation of function (as in other languages like C or pascal), functions are also used for the following:

  • Methods
  • Constructors
  • Classes
  • Module containers

4.12.1 Client-side Cookies

It may be pertinent to point out that writing on the client is forbidden, due to security issues. However, it is possible that small bits of information may be stored in a controlled manner, on the client side. This is possible in the form of a Cookie.

Cookies are not complete without their role in the server side. They are discussed in more detail on the server side in this book.

A Cookie is a piece of information stored in the client's machine. It is used in several contexts but the main reason is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required