Setting, reading and deleting a cookie

When you visit this page for the first time, you'll set a cookie called userkey to a unique id starting with "rn:". The link below to "refresh" the page will visit the page again, and the link to "logout" will visit the page again, deleting the cookie.


Current status:

No cookie received - you are a NEW visitor

Your cookie called userkey will be set to rn:633f659f3ae7b


Actions available:

You may reload this page
You may log out
You may go to our home page

Example written by Graham Ellis of Well House Consultants
We're in the business of training you on subjects like this!
website: http://www.wellho.net
Source code of this example: on our forum

Training sample © 2022, WELL HOUSE CONSULTANTS LTD
This is http://www.wellho.net/demo/cookie_demo.php
See source code here • More examples - same topic here
Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
Phone: +44 (0) 1225 708 225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net