Session Problem

A

Anonymous

Guest
Hi, I'm using
Code:
<?php session_start(); ?>
at the beginig of the code. But sometimes I got this problem.
Code:
Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/php/public_html/tutor/index.php on line 2
Can any 1 plz tell me how to solve this problem .. ?
 
Hunnn :?

1. Is the /tmp directory writeable by the web server and is there space avaliable ?
2. Are you setting/altering session.save_handler via ini_set(), a php.ini or .htaccess file ?
3. What's your PHP version ?
4. In last case try using this code before session_start(): ini_set("session.save_handler", "files");
 
Back
Top