reading the uri parameters so user can be redirected to the page they were at before timeout