0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

session.save handler???

    • Gollum's Avatar
    • Gollum
    • Newbie
    • Posts: 18
    • Thanks: 0

    session.save handler???

    Posted 16 years 3 months ago
    • Help - spent several hours trying to sort this out. New install to hoster but stalling with "session.save" error. I've spoken to the hoster and was directed to the tech pages.AARRRRRRR. This is what i found on the tech support pages

      If the session.save_handler is set to "user", you will see an error on the screen, which will look something like this:
      Fatal error: session_start(): Failed to initialize storage module: user (path: /clientdata/clients/e/x/example.com/www) in /clientdata/clients/e/x/example.com/www/file.php on line XX

      This is because you are trying to use "user" mode, rather than "files".

      The below code should be added to your file before the session_start () function:
      ini_set("session.save_handler", "files");
      session_save_path ($_SERVER."/tmp/");


      I only have acces to the Joomla folder on the host so where exactly do I put this code. What "file" am I supposed to add this code to!! ...........Getting very frustrated. :evil:

      Cheers - Tom C.
    • Ragdata's Avatar
    • Ragdata
    • Elite Rocketeer
    • Posts: 614
    • Thanks: 0
    • Software Engineer

    Re: session.save handler???

    Posted 16 years 3 months ago
    • Try adding it to your main Joomla index.php file (the index.php file in your web root). The real cause of your problem is a misconfiguration of PHP by your host - the session_save_path is either unwritable or non-existant.
    • Ragdata's Rubber Duck
      www.ragdata.net/
    • Gollum's Avatar
    • Gollum
    • Newbie
    • Posts: 18
    • Thanks: 0

    Re: session.save handler???

    Posted 16 years 3 months ago
    • Hi Ragdate, tried your suggestion without success. But have solved the problem
      I have pasted the code into \libraries\joomla\session\session.php and all is well. I have now installed several versions and everything working perfectly. I have used an older version of JoomlaPack which worked flawlessly.

      Thanks for your help :cheesy: :cheesy:

Time to create page: 0.074 seconds