Hi Steinar,
The message "The session has timed out. You must log on again." could be related to the correlation which need to be modified. Please try with this correlation first.
Regarding the pop up blocker you can try to disable the pop blocker during record and reply the script again and check if "Disable your popup blocker to make the portal function correctly" will disappear during replay.
Thanks