Results 1 to 2 of 2

Thread: Redirecting

  1. #1
    Chinquel Guest

    Default Redirecting

    I allow a user to search my website without logging in unless they want to make a purchase. At that point, they are redirected to the login page. How do I redirect them back to the page they were viewing before being prompted to login?

  2. #2
    Join Date
    Dec 1969

    Default RE: Redirecting

    Look in your Server Variables. It&#039;s possible to capture the user&#039;s previous URL, or where he came from to your login page. Store that in some way, either as a session, or pass it with forms, or even in the URL, and keep it there for as long as you need it. When authentication is over, use the variable to pass them back to where they left off.<BR><BR>You could also store either details this way, so if they filled out any forms or anything like that, your system will remember that. I am not sure about the server variable&#039;s name, but do an out put of all of them and you will see it there.

Posting Permissions

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