core: fix problem where mod_signed_url could not keep the user logged on.

(cherry picked from commit 130df95831ac3343bac4b24bad96d453501ff8d5)