skip main navigation skip all navigation top
 

Removing PHP cookies

 

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

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • YahooMyWeb
  • StumbleUpon
  • SphereIt
  • Furl
  • Google
  • Facebook
  • Live

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.

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.

Charanjit Chana BSc

My very own blog that covers a wide range of topics. I'm a web developer by day, and by night, behind the projects Nike+PHP and receeve.it

Search

Categories

Tags

See all tags

Social networks

Nike+

Links

Advertisements