Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Users swapping PHP server and session vars randomly

Discussion in 'General Discussion' started by Bright Minds, Feb 13, 2019.

  1. Bright Minds

    Bright Minds Registered

    Joined:
    Feb 13, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lisbo
    cPanel Access Level:
    Root Administrator
    Hi

    I'm experiencing a strange situation.

    The users are getting other user's $_SESSION and $_SERVER vars randomly.

    Example:

    If I print $_SERVER['REMOTE_ADDR'] I receive different ips (randomly):

    [Removed - Please attach images directly to the thread]

    After some time
    [Removed - Please attach images directly to the thread]

    After some time
    upload_2019-2-13_20-45-48.png

    The same occurs with $_SESSION var.

    Some idea how fix this?

    -----

    Server information:
    cPanel Version: 76.0 (build 20)
    Apache Version: 2.4.38
    PHP Version: 5.6.40 (PHP site version 7.2)
    MySQL Version: 5.7.25
    Architecture: x86_64
    Operating System: linux (CentOS)
    Perl Version: 5.16.3
    Kernel Version: 4.9.120-xxxx-std-ipv6-64
     

    Attached Files:

  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Bright Minds,

    Are you using any third-party applications or services (e.g. Nginx, CloudFlare) on this system?

    Thank you.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice