Hi Cal Evans, On Sat, 18 Jan 2003 10:17:01 -0600, you wrote about "RE: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???" something that looked like this:
>I guess I'm dense this morning. In response to 1: > >$_SESSION['mother']=$_SERVER['PHP_SELF']; Didn't know the server array existed ... where I'd find that in the manual??? Only doc I've got to run from... >and then > ><a href="<?PHP echo $_SESSION['mother'];?>">Go Back</a> > >or better yet... ><a href="<?PHP echo $_SERVER['PHP_SELF'];?>">Go Back</a> Wouldn't that produce a link to the current url, rather than the previous? >as to #2: >I usually just pass this kind of info around on the URL. > >http://mypage.com/mypage.php?prevURL=http://mypage.com/lastpage.php > >if I have to pass a full query string then I urlencode() it first and >urldecode() it on the other side. I can't do that reliably, my URLs are simply too long on some occasions ... so the URL ends up getting the end cut off... But apparently the sessions expiring isn't an issue afterall ... have had the page loaded for several hours, and the recursive linkage still works ... Will have to upload to my webhost though before I can be absolutely certain ... Retaining matching settings in my test-enviro is not entirely possible because their Apache is older than mine...and they run with globals on, and I design for them off, just to be safe... Rene -- Rene Brehmer This message was written on 100% recycled spam. Come see! My brand new site is now online! http://www.metalbunny.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php