Jump to content

Code improvement suggestion


Guest Ueland

Recommended Posts

Posted

Hi,


Our forums are on a size that requires us to use several servers, we are also using an internal apache-proxy system, but here we get a little problem.

The server variable $_SERVER['REMOTE_ADDR'] returns the IP adress of the web server (since apache runs 2 instanses at once), but the real variable is $_SERVER['HTTP_X_FORWARDED_FOR'];


Perhaps something to include in the code somewhere, because before we fixed it, the sessions table was truncated all the time, and users logged on, total users online etc did not work.

But hey, the load went straight up :)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...