RE: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???
| From: | Chris Shiflett | Date: | Sat, 18 Jan 2003 22:43:03 +0000 |
| Subject: | RE: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132127@lists.php.net to get a copy of this message | ||
--- Cal Evans <cal@calevans.com> 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 advice, you should always URL encode any
data you want to append to the URL like that. Also,
decoding it is superfluous, because the Web server will do
that for you (since URL data is supposed to be URL
encoded).
Chris