Ensure referrer is saved in session even when AuthComponent::$loginRedir...

...ect is set.

Refs PR #1187. The patch author didn't update tests and hasn't responded in about a week.