session redirect correction