Revert "The redirect URL is too long.  Switching back to cookies on the portal side."

This reverts commit 68ef1a37449074eedf161729df0b4e4e085e0496.
Merge pull request #638 from kaysoky/Revert_incompleteCommit

Revert broken commit