bugfix: hangup fixed by calling session_write_close() before exec wkhtmltopdf with cookie parameter
hangup caused by locked sessiondata as far as the script is running. see http://php.net/manual/en/function.session-write-close.php