How2 save site entry URL

L

Larry

I would like to save the url of the site a visitor was at when they
elected to visit me so that they can be returned to their origin on exit
from my site. I am presuming I can save the info in a cookie on entry
and then on exit from my site send the visitor back where they came from
[as they possibly may not leave from the same page/website where they
entered originally].
i.e. OnPageEntry if exit.url set then ignore, else save origin url as
exit.url.
OnPageExit if exit.url set then delete cookie and goto. [when not
set is a new window]
What I can't find is the appropriate cookie parameter to save in the
cookie. Can someone point me to a url that has the parameters that can
be used for cookie data or advise which parameter name to save?
There has to be a way to access the data since all browsers back feature
has the previous site url info.

Larry

--
For your security and peace of mind ALL emails are automatically scanned
with the latest Norton AV Virus Definitions. Not that I have any virus'
but why not be careful! I get virus signature updates regularly!

A Belt and Suspenders are the best security invented!
 
J

Jens Peter Karlsen[FP MVP]

You could catch referrer with ASP or PHP and save it in a cookie.
But don't bother because:

1. Most of the time they don't want to go back to the page they came
from.
2. The rest of the time they will either have opened your page in a new
browser window or know how to use the browsers Back button.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top