On Mar 19, 2008, at 3:37 PM, 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).

You can use something like:

<resin:choose>
<resin:when test="${dev}">
   <session-config cookie-domain="dev.com"/>
</resin:when>
<resin:otherwise>
   <session-config cookie-domain="domain.com"/>
</resin:otherwise>
</resin:choose>

Then use -Ddev=true when starting Resin.

-- Scott

>
>
> Any suggestions. I do NOT want 2 config files.
>
> Andrew
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to