# Redirecting help

**URL:** <https://forum.kirupa.com/t/redirecting-help/238681>\
**Category:** programming\
**Created:** [September 13, 2007, 8:57pm UTC](https://forum.kirupa.com/t/redirecting-help/238681 "2007-09-13T20:57:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robot\_Monkey](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@Robot\_Monkey](https://forum.kirupa.com/u/Robot_Monkey)\
**Post date:** [September 13, 2007, 8:57pm UTC](https://forum.kirupa.com/t/redirecting-help/238681/1 "2007-09-13T20:57:59Z")

</div>

I have this page called explore.php/index.php?random=explore, and there’s this thing where you start a session lasting 24 hours saying that you have only that amount of time to go to these pages (index.php?random=place&cmd=$anyplace). In case you exit that page and go to a different page on the website, how can I make it so that when you go back to index.php?random=explore and the session still exists, it redirects back to the last place you were in index.php?random=place&cmd=$anyplace?
