views:

202

answers:

3

I want to add a cookie so that I can exclude my interaction with my website from google analytics (I don't have access to put files on server as is third party application)

Is it possible to set a cookie with javascript by executing code in teh address bar of the browser?

+1  A: 

javascript:document.cookie="name=value"

gcb
A: 

another way is to use firebug on explorer or the js console in ie8. just type document.cookie="XDEBUG_SESSION_START=netbeans-xdebug";

then you can verify it was set by typing document.cookie

Diego Cassinera