I would look at request.getServerName() for the domain and decide the 
cookie name then.
Now if the user switch between 2 domains during the same session, I'd 
put both cookies... (this is only theorical suggestions)

Andrew Fritz wrote:
> I need to set the cookie-domain differently depending on whether I'm 
> running local (for testing) or on our production servers. I haven't 
> found an documentation about how I might do do that.
> 
> Basically, if it is our production cluster I want a ".our.domain.com" 
> cookie domain. Right now the server issues "www.out.domain.com" or 
> "our.domain.com" - no leading period - based on how I get to the site, 
> which blows up if the users changes from www to non-www. If the server 
> is running on our test environment (like my laptop) I want a cookie 
> domain based on the request URL (default behavior).
> 
> Any suggestions. I do NOT want 2 config files.
> 
> Andrew
> 
> 
> _______________________________________________
> resin-interest mailing list
> [email protected]
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 

-- 
Très cordialement,

Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49



_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to