Revert "Fixed security error. Session ID in the url after successful login even though cookies was enabled."

This reverts commit 4a2e88bf286defccc5ad71383c678b61bbdea808.