php - deleting duplicate cookie on domain -


I am trying to delete a cookie entry from a site. The problem is that when a cookie is registered, it is registered on both the www.domainname.com and .domainname.com of the site, so there are two entries for the cookie Trying to delete:

  jQuery.cookie ("cookie", "", {expires: -5, domain: ".namename"}); JQuery.cookie ("cookie", "", {ending: -5, domain: "www.domainname.com"});   

Try and catch both, however, one or the other always stays, and will not be removed / ending. Anyway to force the cookie to end? I also have the use of PHP.

If you have access to php then you can set the function: The fifth argument for you is important - the domain.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

memcached - Django cache performance -