473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Unfamiliar sessions error

I never saw it before, but today I got several:

Fatal error: session_start() [function.session-start]: Failed to
initialize storage module: user (path: /tmp) in
/usr/local/psa/home/vhosts/mydomain/httpdocs/test/script.php

In the few docs I found related to this msg problems with a custom
session handler are mentioned as the source of the problem, but I don't
even have a custom session handler. I use the default one, the default
path for session files etc etc.

The server is not my own, but my host's. The script hasn't changed for
weeks, and it worked before. All it does is test if a certain session
var exists. If not it opens a new session and sets the variable.

Apache2 server, PHP 5.0.4), the settings for sessions as copied from
phpinfo():
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
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 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

Any clues? Thanks in advance!
Sh.
Apr 5 '07 #1
3 3587
Schraalhans Keukenmeester wrote:
I never saw it before, but today I got several:

Fatal error: session_start() [function.session-start]: Failed to
initialize storage module: user (path: /tmp) in
/usr/local/psa/home/vhosts/mydomain/httpdocs/test/script.php

In the few docs I found related to this msg problems with a custom
session handler are mentioned as the source of the problem, but I don't
even have a custom session handler. I use the default one, the default
path for session files etc etc.

The server is not my own, but my host's. The script hasn't changed for
weeks, and it worked before. All it does is test if a certain session
var exists. If not it opens a new session and sets the variable.

Apache2 server, PHP 5.0.4), the settings for sessions as copied from
phpinfo():
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
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 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

Any clues? Thanks in advance!
Sh.
Hi,

I don't get it. What is your seve hadler? file AND user?
I never saw that before.

I wrote userdefined session sava handlers too, but I changed the:
session.save_handler = files
to
session.save_handler = user

Seems like you use both.
Which one should PHP use?
Could that be the source of the problem?
Regards,
Erwin Moller
Apr 5 '07 #2
Schraalhans Keukenmeester wrote:
I never saw it before, but today I got several:

Fatal error: session_start() [function.session-start]: Failed to
initialize storage module: user (path: /tmp) in
/usr/local/psa/home/vhosts/mydomain/httpdocs/test/script.php

In the few docs I found related to this msg problems with a custom
session handler are mentioned as the source of the problem, but I don't
even have a custom session handler. I use the default one, the default
path for session files etc etc.

The server is not my own, but my host's. The script hasn't changed for
weeks, and it worked before. All it does is test if a certain session
var exists. If not it opens a new session and sets the variable.

Apache2 server, PHP 5.0.4), the settings for sessions as copied from
phpinfo():
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
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 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

Any clues? Thanks in advance!
Sh.
It looks like you don't have write access to /tmp. This could be
because the permissions on /tmp are wrong, /tmp is filled (disk quota), etc.

You need to be talking to your host.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 5 '07 #3
Erwin Moller wrote:
Schraalhans Keukenmeester wrote:
>I never saw it before, but today I got several:

Fatal error: session_start() [function.session-start]: Failed to
initialize storage module: user (path: /tmp) in
/usr/local/psa/home/vhosts/mydomain/httpdocs/test/script.php

In the few docs I found related to this msg problems with a custom
session handler are mentioned as the source of the problem, but I don't
even have a custom session handler. I use the default one, the default
path for session files etc etc.

The server is not my own, but my host's. The script hasn't changed for
weeks, and it worked before. All it does is test if a certain session
var exists. If not it opens a new session and sets the variable.

Apache2 server, PHP 5.0.4), the settings for sessions as copied from
phpinfo():
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
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 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

Any clues? Thanks in advance!
Sh.

Hi,

I don't get it. What is your seve hadler? file AND user?
I never saw that before.

I wrote userdefined session sava handlers too, but I changed the:
session.save_handler = files
to
session.save_handler = user

Seems like you use both.
Which one should PHP use?
Could that be the source of the problem?
Regards,
Erwin Moller
The problem (or lack thereof) is I don't have no steenkin' custom
handler, at all. It's just PHP suddenly shouting I do. So either
something really odd is going on in my host's setup, or.... Well, I dunno.

I've asked them about the problem. No reports on /tmp being full or
inaccessible, no recent changes they could link to this situation.

I can't force the bahaviour in any way I could think off, it just pops
up now and then. I'll have another browse through the bug list, maybe
something I missed is there after all.

Thx for the input guys
Apr 6 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Peter J. Veger | last post by:
Context: WinXP Pro, IIS5.1, PHP5.03 Simplified: the page http://myserver/myvirtualdir/index.php contains <?php echo 'here'; session_start(); echo 'there';
8
by: Ron Vecchi | last post by:
I know this has been asked before but I out of all the posts I've read regarding using Directory.Move and then the application restarting itself I have found no answer except that Sessions are...
1
by: D A H | last post by:
I have gotten the same exception in multiple projects. I have solved the underlying problem. My question is if anyone knew of a setting that would cause this exception to be thrown. A...
1
by: Pavils Jurjans | last post by:
Hello, I have a couple of unclear questions about ASP.NET sessions: First, I'd like to have some way to see how many sessions currently are running on the certain application, and, possibly, have...
4
by: Edgardo Sepulveda | last post by:
Hi, one question, is there a limit on the numbers of sessions that a client can have? i dont know why but suddently, as i handle a lot of the user information with sessions, and also have added a...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
1
by: Duncan | last post by:
I have a strange problem with sessions in PHP 5. I have a simple script that prints a random number both as a string and a picture on the screen. When I run the script for the first time, it works...
6
by: dawnerd | last post by:
HI everyone. I have another little problem that I could use some advice on. I have a session class that handles creating a simple session to keep my users logged in. It works fine. However, the...
6
by: bill | last post by:
I have been "Googling" for about an hour and am turning up squat! I just started receiving this error when trying to log into a MS Access database from a vb .net web application. Recycling IIS...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.