Solved

Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp)

Posted on 2004-10-10
6
650 Views
Last Modified: 2008-01-09
Hi all

Got this random error for I don't know what reason.
Dont know if it a script error or a server error, cos it never used to have this error. This error only happens once in a while not always.

Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/*******/public_html/admin/includes/session.ssi on line 2

*****session.ssi*********
<?
session_start();
header("Cache-control: private"); // IE 6 Fix.
?>

session.ssi is included right at the top of each page.

Thanks
0
Comment
Question by:minichicken
  • 2
  • 2
  • 2
6 Comments
 
LVL 27

Accepted Solution

by:
Diablo84 earned 350 total points
ID: 12271138
hmm, this is a new one on me. Try emptying your temp session directory, its possible that it is becoming full before the garbage clean up occurs at certain times and hence can't write any more data.

Just had a quick look to see if i could find anyone else who has experienced this problem and it seems your not alone
http://bugs.php.net/bug.php?id=25876

Apparently the problem was fixed in CVS so you might want to direct your attention here: http://snaps.php.net/ however there is several suggestions in the previous link that will hopefully help you get to the bottom of it.

0
 
LVL 12

Author Comment

by:minichicken
ID: 12274401
Thanks I will go have a look... and let you know how it goes... the thing is that, the site is hosted with a hosting company....
I think I should let them know about the problem and ask them to fix it, as I dont access to the server...

Thanks again... I will give the points as soon as it solved, it might take while though, hope you don't mind....
0
 
LVL 27

Expert Comment

by:Diablo84
ID: 12274582
thats no problem minichicken, best of luck with getting the problem fixed.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 12

Author Comment

by:minichicken
ID: 12333567
Hi Diablo

Sorry that I took so long to accept your answer, I think the problem should be fixed, the hosting company hasnt got back to me yet. They so inefficient..... But I believe your solution is correct....

Thanks for your help :)
0
 

Expert Comment

by:ceciliamtz
ID: 12862528
Thanks to all for responding. I am waiting response from the hosting company but in the meanwhile I post the server's PHP info (sessions) to see if any of you sees something out of the ordinary:

session
Session Support       enabled
Registered save handlers       files user

Directive      Local Value      Master Value
session.auto_start      Off      Off
session.bug_compat_42      On      On
session.bug_compat_warn      On      On
session.cache_expire      180      180
session.cache_limiter      nocache      nocache
session.cookie_domain      no value      no value
session.cookie_lifetime      0      0
session.cookie_path      /      /
session.cookie_secure      Off      Off
session.entropy_file      no value      no value
session.entropy_length      0      0
session.gc_divisor      100      100
session.gc_maxlifetime      1440      1440
session.gc_probability      1      1
session.name      PHPSESSID      PHPSESSID
session.referer_check      no value      no value
session.save_handler      files      files
session.save_path      /tmp/php-ses      /tmp/php-ses
session.serialize_handler      php      php
session.use_cookies      On      On
session.use_only_cookies      Off      Off
session.use_trans_sid      On      On

0
 

Expert Comment

by:ceciliamtz
ID: 12862533
ups!!! SORRY!!! wrong thread!!

Admins: you can go ahead and delete my comments.

sorry again!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Form Processing in PHP 11 32
get domain with php 7 20
What is the best PDF generator to use? 1 30
PHP search array for either partial or complete values 3 8
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now