If you set a cookie that covers all of the sub-domains of your site, you can't just unset the cookie in a casual way, you'll have to specify that the cookie set for all sub-domains should go.
You can set a cookie for all sub-domains by specifying the domains as .domain.com - a period before the top level domain.
I thought you could just unset the cookie by specifying the cookie's name, but that's not the case
This post has the following tags: cookies, php
This post was filed under the following categories: Code
First posted: 11th Oct 2008 @ 09:50
This post has been updated on 1 occassion(s):
Last updated: 11th Oct 2008 @ 09:51
Further reading...
Here are some articles that you might find interesting.
- PHP - deleting cookies - 100% match
- The beginning - 50% match
- Nike+PHP progress and branding - 50% match
- Nice little function in PHP - 50% match
- PHP includes and requires - 50% match
The post Removing PHP cookies by Charanjit Chana is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.0 UK: England & Wales License. Permissions beyond the scope of this license may be available by getting in contact with the author.













