Solved

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

Posted on 2004-10-10
6
612 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 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

22 Experts available now in Live!

Get 1:1 Help Now