Ole
Could you try replacing the file you just modified (kiwitrees/includes/session.php) with the one in the attached zip folder.
I hope this might also solve your problem, but in a way that can be part of standard code, so you do not need to make the change at every upgrade. I am also testing it on servers that use the more common port ‘443’ to be sure they still work normally. So far it seems to be OK.