Menu

Session Problem

Help
2004-07-30
2004-07-31
  • Matthew Miner

    Matthew Miner - 2004-07-30

    Recently a client moved an application that has been running successfully with PSA for several months to a new host. He contacted me after moving the app indicating they could no longer access their pages. The following error is being received.

    Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /data/sites/18236/paintersandcleaners.com/www/schedule/phpsecurityadmin/include/config.php on line 78

    Any insight?

    Thanks
    Matt Miner

     
    • Justin Koivisto

      Justin Koivisto - 2004-07-30

      Is the new host is safe mode? Try setting the session.save_path to a directory inside the user's home directory. For instance, try something like:

      ini_set('session.save_path','/data/sites/18236/paintersandcleaners.com/phpsess');

      You may also have to adjust the permissions for this directory.

       
    • Matthew Miner

      Matthew Miner - 2004-07-31

      Thank you for the suggestion. I added the ini_set to config.php.

      with permissions to 777 on /data/sites/18236/paintersandcleaners.com/phpsess I get the following:

      Fatal error: session_start(): Failed to initialize storage module: user (path: /data/sites/18236/paintersandcleaners.com/phpsess) in /data/sites/18236/paintersandcleaners.com/www/schedule/phpsecurityadmin/include/config.php on line 80

      Safe mode is off.

      All pages work ok if I comment out <?php //require_once "phpsecurityadmin/_restrict.php"; ?>

      There are no other session starts other than PSA in the application code.

      However if I go directly to the admin functions of PSA things work fine ie.

      http://www.paintersandcleaners.com/schedule/phpsecurityadmin/index.php

      opens fine and I am able to login as administrator and perform all admin functions to the database.

      Matt

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.