[PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???

2003-01-18 Thread -[ Rene Brehmer ]-
Hi gang Been trying to figure out this session stuff, but since I was unable to make the manual sample into something workable, I instead decided to actually try and make the session do what I need it for: Passing the URL of the caller page to the page that's being called. 1. Only I can't figure

RE: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???

2003-01-18 Thread Cal Evans
I guess I'm dense this morning. In response to 1: $_SESSION['mother']=$_SERVER['PHP_SELF']; and then a href=?PHP echo $_SESSION['mother'];?Go Back/a or better yet... a href=?PHP echo $_SERVER['PHP_SELF'];?Go Back/a as to #2: I usually just pass this kind of info around on the URL.

RE: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???

2003-01-18 Thread Chris Shiflett
--- Cal Evans [EMAIL PROTECTED] wrote: 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. Just as a bit of

RE: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???

2003-01-18 Thread John W. Holmes
1. You can create the current page with a combination of PHP_SELF, QUERY_STRING, etc... Take a look at a phpinfo() page to see all of the variables. 2. You can use ini_set() in your code to change the settings for your sessions or an .htaccess file if your on *nix. ---John W. Holmes... PHP

Re: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???

2003-01-18 Thread -[ Rene Brehmer ]-
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

Re: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???

2003-01-18 Thread -[ Rene Brehmer ]-
Hi Justin French, On Sun, 19 Jan 2003 12:01:45 +1100, you wrote about Re: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout??? something that looked like this: 1. If you require the back button to work forever, then do not use sessions, because they're not designed to