Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Oakville
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts

    last url visited

    I was wondering if I should use PHP or Javascript to find out the last url visited. I need this for some security that i am building. if so, how?

    Thanks
    Steve

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    either way relying on the HTTP_REFERER is never secure, I would suggest using PHP sessions to track the progress of a user through a site, i.e. if a user needs to have gone to pageA before viewing pageB then you can set a session variable on pageA and check for its existance and time created on pageB which is pretty hard to spoof.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

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