This variable ends up never being used -- the request is over as soon as you redirect, which causes the browser to issue a second request for the URL you redirect to. Instance variables don't survive across requests.