Contents / Previous / Next


Cookies and Session Management

Using regular HTML pages, when a browser requests a page from a server, the server will serve that page to the client then simply forgets about it! No knowledge of the client is kept between requests. Certainly the client browser will keep a record of the pages in the History object, but unless we do something no other information is kept. In a suite of web pages this means that if we enter information in one form, it will not automatically be available to other pages in the web application.

HTML and PHP offer various methods to make a web viewing session "stateful":