<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>In the settings file, find this:</div><div><br></div><div>$cookie_domain = 'example.com';</div><div><br></div><div>However, in most cases I recommend a 301 redirect to the main domain rather than having identical content on multiple domains.</div><div><br></div><div>- Ken Winters</div><br><div><div>On Jan 11, 2010, at 12:44 PM, Ashraf Amayreh wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello all,<br><br>I'm using ISAPI rules to rewrite a URL transparently. As far as I know, this acts like a proxy.<br><br>Let's say the browser access URL is "<a href="http://abc.com">abc.com</a>" and this is rewritten transparently to "<a href="http://xyz.com">xyz.com</a>", all works great except, the Drupal session is saved with the domain "<a href="http://xyz.com">xyz.com</a>", making me unable to read it when accessing the site on "<a href="http://abc.com">abc.com</a>" because it's outside the domain.<br> <br>I believe optimally I'd want Drupal to write it under the domain "<a href="http://abc.com">abc.com</a>" rather than "<a href="http://xyz.com">xyz.com</a>". 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.<br clear="all"> <br>-- <br>Ashraf Amayreh<br><a href="http://aamayreh.org">http://aamayreh.org</a><br> </div></blockquote></div><br></body></html>