Mobile Scheduler + dhx.ajax + headers

Hi

I am not sure if I am doing something wrong or not. Please could you provide some guidance.

I have the mobile scheduler working with authentication and it works ok. I am now trying to save data back from the mobile scheduler. Here is what I am doing:

  1. Display logon page.
  2. Send user details using dhx.ajax.post.
  3. Since a Set-Cookie header instruction does not seem to be honored by dhx.ajax, I specify the session ID as a parameter in subsequent calls.
  4. Display scheduler if auth successful.

Now when I try to save back, I also need to pass the session ID as a parameter. But the scheduler save URL is set at initialization. Is there an easy way to change this at execution time? Is there a way to set a session cookie that will be honored by dhx.ajax?

Thank you.