Skip to content
Browse files

empty site_domain will disable cookies

  • Loading branch information...
1 parent ab63b25 commit 44d2e82aee765d2c1fc4b0a11b85c14853ac26ab @bluesmoon committed Jan 4, 2013
Showing with 4 additions and 2 deletions.
  1. +2 −1 boomerang.js
  2. +2 −1 doc/api/BOOMR.html
View
3 boomerang.js
@@ -57,6 +57,7 @@ impl = {
// strip out everything except last two parts of hostname.
// This doesn't work well for domains that end with a country tld,
// but we allow the developer to override site_domain for that.
+ // You can disable all cookies by setting site_domain to a falsy value
site_domain: w.location.hostname.
replace(/.*?([^.]+\.[^.]+)\.?$/, '$1').
toLowerCase(),
@@ -144,7 +145,7 @@ boomr = {
setCookie: function(name, subcookies, max_age) {
var value=[], k, nameval, c, exp;
- if(!name) {
+ if(!name || !impl.site_domain) {
return false;
}
View
3 doc/api/BOOMR.html
@@ -81,7 +81,8 @@ <h2 id="config">Configuration</h2>
wrong. It's a good idea to set this to whatever part of your domain you'd like to
share bandwidth and performance measurements across.<br>
If you have multiple domains, then you're out of luck. You'll just have to get
-separate measurements across them.
+separate measurements across them.<br>
+Set this to a falsy value to disable all cookies.
</dd>
<dt>user_ip</dt>

0 comments on commit 44d2e82

Please sign in to comment.
Something went wrong with that request. Please try again.