Cookies enabled web developers to produce more usable sites, by allowing temporary storage of commonly used information by the user. This can be beneficial in shopping carts, user logon systems and general site usage. Read on to find out how to use cookies and how to implement a simple user logon system.
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
Setting and playing around with cookies is a fun and useful way to save data on a user's hard drive, and can successfully store valuable information which may be helpful the next time they come to the site. Its fairly simple to set up, and even easier to read.
For those new to web development and 'how things work', cookies can be a very confusing matter. In this tutorial, Timothy gives you an overview of cookies to help you understand how they work.
To begin this tutorial in PHP sessions, you must first make sure that your web server (ie. apache) has the options to allow session with the configuration. Note: people using apache and php under a win32 enviorment must manually configure this option.
To start, this tutorial, you should have some basic knowledge of php coding. Refer to Hotscripts for some basic and more advanced php coding tricks.