I'm hoping someone can help me out with this as I'm a little rusty when it comes to ajax requests. I'm working on a webapp (
Tomcat is embedded) where we want to allow the user to login via an ajax call.
Let's say the user is on
http://www.mysite.com/anypage and clicks to login, a popup opens asking for creds, that form submits via ajax to
https://www.mysite.com/do_login_process_url which in turn verifies credentials and returns a response including the Tomcat JSESSIONID cookie and ROUTEID cookie. When hitting the login url directly I get the correct response with cookies, when hitting it via ajax I get the correct response with cookies EXCEPT the cookies domain value is blank and therefore not associated with mysite.com which leads to the user not getting updated as logged in. Any advise?
To note I did post a question on StackOverflow 2 days ago but have received no answers.