Re: Environment Variables -- HTTP_REFERER

From: Date: Thu, 24 Oct 2002 06:29:46 +0000
Subject: Re: Environment Variables -- HTTP_REFERER
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121208@lists.php.net to get a copy of this message
Hello, "Darwin" <superbus22@attbi.com> wrote: > A database solution will put too much of a burden on my database (even if I > delete older records), and will slow down the scripts a little. Is there a > javascript solution, with the history record of the pages visited, that I > could use with PHP? If so, how would I implement that and make both If the user agent can manipulate it, then even a "javascript solution" wouldn't be reliable. ...[snip]... > > 2. current host and page $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] I don't think this will work on v4.0.6--better upgrade. > > update it. You > > can pull the last page they were at by pulling page out of the db that > > matches their SID (and/or TIMESTAMP if you want). Periodically though you > > will need to run a script and delete old SID's as your db will > > get big fast. > > > > Ad hoc but works. What if they came from another site? (...and HTTP_REFERER is not reliable...) ...[snip]... Just wondering... - E

« previous php.general (#121208) next »