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!

session save path suddenly changed for all to a users tmp folder

Discussion in 'General Discussion' started by jeroman8, Jun 15, 2008.

  1. jeroman8

    jeroman8 Well-Known Member

    Mar 14, 2003
    Likes Received:
    Trophy Points:

    Today sessions was forbidden to be written and crashed a few sites.
    The strange thing is that sessions was trying to be saved under a users /tmp folder and not the server /tmp folder.

    So one users sessions tried to be saved under another users tmp folder ??
    This is NOT a client/user thing, where he set the session save path in his script or htaccess etc. It's PHP doing this.

    In php.ini it say:

    session.save_path = "N;/path"

    Never seen this before actually - used to be /tmp (servers tmp).

    Somehow, suddenly - PHP decided that "N;/path" is one users /tmp folder.

    How can that be ?

    I now changed it to /tmp on all servers since "N;/path" seems to buggy and dangerous.

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