Are both cookies being set at the same time?
The ManifoldCF web connector records *all* the cookies that have been set at the time the login sequence ends. So there are two possibilities:
(1) You did not specify all of the login sequence. You may have missed, for instance, a last redirection, which sets the second cookie.
(2) There is some sort of problem with Httpclient, or how we configure it, which prevents it from accepting one of the cookies. Httpclient has many different cookie policies; we may need to change the one we use.
If both cookies are set at the same time on the same response, then we know that the problem is not (1). So please let me know.
For debugging this on 1.5, the best thing to do is to turn on httpclient logging of various sorts. You do this through the ManifoldCF logging.ini file. See the section on log4j at: http://hc.apache.org/httpcomponents-client-4.2.x/logging.html
Wire debugging is very helpful for determining when a cookie has been transmitted. If you need to know why a cookie has been rejected, context logging is helpful.
I'd be happy to look at the logging output and let you know what I think, if you want to send it to me.