Finding a referring URL?

Results 1 to 2 of 2

Thread: Finding a referring URL?

  1. #1
    Join Date
    Dec 1969

    Default Finding a referring URL?

    I&#039;ve got an asp forum, people don&#039;t need to register onto a db, they can just use a simple username/email login page which is stored in a cookie. When they go to look at a message, they may find, if a pc is shared, that the info stored on the cookie needs to be changed - at the moment they have to go back to the login page and then login with the correct info and then find the message again in order to reply to it with the new login details. <BR><BR>Can I store the URL of the page they jump from, so when they have logged in it returns them to that page? <BR><BR>e.g. <BR><BR>Referring URL = message.asp?ID=33<BR><BR>When they go to the login page it takes that URL info in the link, and then once logged in there is a response.redirect on the login response page which returns the user to the page they had just been looking at? <BR><BR>Does that make sense? <BR><BR>Thanks<BR><BR>Jim

  2. #2
    Join Date
    Dec 1969

    Default RE: Finding a referring URL?

    use <BR><BR>request.servervariables("HTTP_REFERER")<BR ><BR>to capture the page they were previously on

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts