Hi Sharath,
How did you go with this?
Last time I checked, you indeed have different agent instance for target (agent protecting resource) and the login (agent doing the login) agents.
I asked you to match cookiedomain & cookiedomainscop for both of these agent and test.
Let me know if you need help.
Regards,
Ujwol