$_COOKIE and subdomains

I’ve written a cookie for my domain + subdomain: setcookie(“visitor”, $visitor, time()+60*60*24*365, “/”, “.mydomain.net”); but when I try to read it from within subdomain.mydomain.net, it’s empty. Could it be that $_COOKIE[] tries to read the cookie for the subdomain instead of reading the global one? How do I fix this? TIA Steven Edit Happens in … Read more

What’s the best way to rewrite traffic from domainA.com/foo to domainB.com/bar while properly rewriting cookies and redirects?

We have a number of sites that have blogs, like domainA.com/blog domainB.com/blog and we host the blogs on wordpress multi user: our-separate-wordpress-site.com/domaina_blog our-separate-wordpress-site.com/domainb_blog for SEO reasons we really, really want domainA.com/blog to be the blog url, not the other path. But we don’t see any examples where this is done, because we need not to … Read more

Why can’t Windows Server 2008 create cookies?

Scenario: I have a web application (SnapshotServer) which uses a WebBrowser control to take a snapshot images of a web page. I use a WebBrowser control within SnapshotServer to navigate to a entry page of a secure web application (ImageHost) and then redirects me to my required page. The ImageHost application is protected by FormsAuthentication, … Read more

curl cookie and cookiejar trouble

I’ve got a script that curls a site using a specific cookie value in a cookie file. When I run this on my local system, the server returns the same value to my cookie jar, as per my expectations. When I run this same script from another physical host, I get the exact same expected … Read more

Google Analytics setting cookies on static content despite being on entirely separate domain

I recently decided to comply with the YSlow recommendation that static content is hosted on a cookieless domain. As I already use the root of my domain (donaldjenkins.com) to host my website—on which Google Analytics sets a few cookies—that meant I had to move the CNAME URL for the CDN serving the static files from … Read more

.htaccess RewriteRule with cookies not working

The Joomla CMS Platform has an /administratotr/ folder which cannot be renamed. I’d like to secure it by requiring a custom url parameter to access it – I.E. /administrator/index.php?token=1149785380. After accessing this url, an html session cookie should be used to allow access for the duration of their browser session. Any thoughts what could be … Read more

Reverse Proxy a Sub-directory to a Sub-directory with Apache

I understand proxies in concept (though have never set one up). I’m attempting to proxy Drupal, but I’m fairly sure that my problem is not related to Drupal. As I have been trying to determine the magic ingredient to get this working since this morning, I’ll get right down to it: Environment I have two … Read more