Prevent redirect loops with sessions since HTTP referrer header is unreliable and ensures sessions are saved upon redirect