Nigel Whitworth's Development Site

You are currently not logged in.

Cookies

A cookie is a small file stored on a users machine so that it doesn't have to store it in a database at the website. Otherwise the site would have to keep getting the information everytime the user used the website. Some people have serious misconceptions about cookies because they don't know what they are. You cannot store anything other than text in them, its highly unlikely that a virus will be stored or anything else that is damaging to your computer. The risk is close to zero, I would say zero but for legal reasons, I'm saying close to zero. A cookie cannot search out and retrieve a users credit card details, neither can they access an address book. They're harmless, docile text files. This website uses cookies so that the user doesn't have to log-in every time they want to change their votes.

Explanation ASP PHP

Create a Cookie
 
Store an item in a Cookie setcookie("Webuser","Nigel");
 
Fetch an item from a Cookie $name=$_COOKIE['Webuser'];
 
Delete a cookie setcookie("Webuser", $HTTP_POST_VARS['UserName'], time()-3600)
 



If you intend to vote or make a comment, please enter the security code.

Make a comment

*Comments are the views of individuals, they may or may not be correct.
All comments are reviewed and accepted or rejected.
If you give an email address, you will be sent an email when someone makes a comment on this page.*

Name :
Email :
Comments :


Only name and Code is compulsory.
 
 
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)