PHP / SOAP : Cookies/sessions patch for nusoap

This work is dedicated to the
Public Domain.
This is a 'hack', not a solid patch, it worked for the one application I needed it for - and that application used only a single cookie. This probably won't work for you - you'll probably actually have to parse the cookie to make sure it's only sent to the right domain, and that it is expired properly. This patch, is against nusoap version 1.67. Get the latest version at: http://dietrich.ganx4.com/nusoap/index.php.