Redirect refactor

Edited redirect to use sessions instead of GET.