1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

IP Address Caching

Discussion in 'Plesk for Windows - 8.x and Older' started by computerwitness, Sep 29, 2005.

  1. computerwitness

    computerwitness Guest


    I am using a php script and a mysql database to log visitors ip-addresses. I have had a lot of strange results with my script because I almost always get the same ip-address that is being logged.

    It seems that the server is caching requests from visitors and therefore I can not log the correct IP address from my visitors.

    Is the cache something I can switch off in Plesk? I have been looking for it, but to no avail.

    Do you know if there is something else I can do to solve my problem?

    Many thanks in advance!
  2. eara01

    eara01 Guest

    What PHP code are you using to get the IP address?

    We're using $_SERVER["REMOTE_ADDR"] and it's working fine for us.

    We're running PHP "as ISAPI extension."