Thread: Forbidden 403

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2011
    Posts
    37
    Rep Power
    4

    Forbidden 403


    Hello,
    I am trying to setup a security check in PHP that verifies a session variable, to see if the user is still using the same session. The problem is that I get a Forbidden 403 when I login to the system, close the browser and try to access the page.

    The code is working because it points to the page that it should if the session is not the same.

    URL reads:
    Code:
    http://localhost.dev/admin/'http://localhost.dev/admin'
    Here is the contents of the 403 page:
    Code:
    Forbidden
    
    
    
    You don't have permission to access /admin/'http://localhost.dev/admin' on this server.
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7171
    It looks like you're performing a bad redirect somewhere, either in a .htaccess file or via PHP. If I had to guess, I would say that it's supposed to be redirecting you to "http://localhost.dev/admin", not "http://localhost.dev/admin/'http://localhost.dev/admin'".
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,303
    Rep Power
    9400
    Your link probably looks like
    Code:
    <a href="'http://localhost.dev/admin'">
    Note the quotes.

IMN logo majestic logo threadwatch logo seochat tools logo