[development] ISAPI Rules

Ken Winters kwinters at coalmarch.com
Mon Jan 11 18:08:03 UTC 2010

In the settings file, find this:

$cookie_domain = 'example.com';

However, in most cases I recommend a 301 redirect to the main domain  
rather than having identical content on multiple domains.

- Ken Winters

On Jan 11, 2010, at 12:44 PM, Ashraf Amayreh wrote:

> Hello all,
> I'm using ISAPI rules to rewrite a URL transparently. As far as I  
> know, this acts like a proxy.
> Let's say the browser access URL is "abc.com" and this is rewritten  
> transparently to "xyz.com", all works great except, the Drupal  
> session is saved with the domain "xyz.com", making me unable to read  
> it when accessing the site on "abc.com" because it's outside the  
> domain.
> I believe optimally I'd want Drupal to write it under the domain  
> "abc.com" rather than "xyz.com". I thought this might be a setting  
> read from the $base_url inside the settings.php but apparently not.  
> Is there a way to force the domain Drupal uses to set its cookies? I  
> hope I got this right and it makes sense. I appreciate any help or  
> ideas.
> -- 
> Ashraf Amayreh
> http://aamayreh.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100111/a9e1d664/attachment.html 

More information about the development mailing list