Cookies Script
FabianNewman
Status: New User - Welcome
Joined: 30 May 2008
Posts: 4
Reply Quote
Hello.
I have a script to erase cookies on our website, however, I want to create one that automatically deletes the cookies whenever someone accesses the site.

I have our cookie delete script below. If I need to delete all cookies, not just "GUID", what change do I need to make to the script? This works on one of our websites but not on forwarding links for some reason.

Here is the clear cookie info. I have added it to the header of our home page and all other sites that forward or direct to our site.

<HEAD>

<SCRIPT>

document.cookie = "GUID" + "=; expires=Mon, 15 Dec 1999 12:00:00 GMT;";

</SCRIPT>

</HEAD>


Thanks so much!!!!!!!!!!!!!!!!1
Back to top
paleoflatus
Status: Interested
Joined: 17 Sep 2008
Posts: 18
Location: Gold Coast, Queensland, Australia
Reply Quote
Many years ago, I started making it a practice to replace my cookie file with a symbolic link to the bit-bucket.
# rm ~/.kde/share/apps/kcookiejar/cookies
# ln -s /dev/null ~/.kde/share/apps/kcookiejar/cookies

This seems to cause me no problems and I hope it causes no problems in forums like this.
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 3762
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
Blocking cookies this way means you always have to log back in, and lose a lot of functionality.

The real way to do it is to block third party cookies by default, and to allow the others.

Cookies just aren't the bad things that people think they are. I block certain ones, but I blacklist them, not whitelist.

For example, I block google cookies because in my work I need to always see standard, non customized or personalized searches.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours