Hi,

I'm using a different server to what I normally use and I'm getting this error:

"Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: user (path: /tmp) in /clientdata/..../www/admin/session.php on line 6"

This is the code I'm using:

session_set_cookie_params(0); // session cookie time-out
ini_set('session.gc_maxlifetime', 43200); // garbage-collection time in seconds
// initiate the session
session_start(); <--- line 6

Does anyone know what is going wrong here?

Thanks for any help,
~Oni.

    It would seem as if PHP couldn't create a new session file in /tmp for the new session.... could be because it ran out of room, could be permissions on the tmp folder...

      Thanks. Unfortunately I don't have access to that folder.

        I found a solution. I needed to put this at the beginning of the code:

        ini_set("session.save_handler", "files");

          Write a Reply...