I am not too much of a web developer so this might be a newbie question.
I am trying to do xml request where I send a user name and password. On the reply my server application will stick a cookie in the response header. Will this cookie be accessible using the document.cookie variable?
Yep, you definitely can. I made a program to test it.
HTML file:
PHP file: