473,397 Members | 2,099 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,397 software developers and data experts.

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


My server was working fine (no one else changes it but me, it's a
local server on my lan), and all of a sudden I get:

Fatal error: session_start(): Failed to initialize storage module:
user...

It didn't even happen after like a reboot or something, it just
happened one morning.

I fixed it by changing:

session.save_handler = user

to

session.save_handler = files

But my question is- why did I have to do that? What could've
happened? How do I make it work with "user" again?

thanks

Mar 5 '07 #1
5 7636
Rik
mrbog <dt******@hotmail.comwrote:
>
My server was working fine (no one else changes it but me, it's a
local server on my lan), and all of a sudden I get:

Fatal error: session_start(): Failed to initialize storage module:
user...

It didn't even happen after like a reboot or something, it just
happened one morning.

I fixed it by changing:

session.save_handler = user

to

session.save_handler = files

But my question is- why did I have to do that? What could've
happened? How do I make it work with "user" again?
Correct me if I'm wrong here, but AFAIK, 'user' is not a deault handler.
If there are problems saving sessions with the 'user' session handler,
you'd have to check that logic. In many custom handlers it's done in
combination with a database, so you might check wether that database is
reachable, not at it's limits (either by primary/unique index or size
enforced by hoster).
--
Rik Wasmus
Mar 5 '07 #2
On Mar 4, 11:28 pm, Rik <luiheidsgoe...@hotmail.comwrote:
mrbog <dterr...@hotmail.comwrote:
My server was working fine (no one else changes it but me, it's a
local server on my lan), and all of a sudden I get:
Fatal error: session_start(): Failed to initialize storage module:
user...
It didn't even happen after like a reboot or something, it just
happened one morning.
I fixed it by changing:
session.save_handler = user
to
session.save_handler = files
But my question is- why did I have to do that? What could've
happened? How do I make it work with "user" again?

Correct me if I'm wrong here, but AFAIK, 'user' is not a deault handler.
If there are problems saving sessions with the 'user' session handler,
you'd have to check that logic. In many custom handlers it's done in
combination with a database, so you might check wether that database is
reachable, not at it's limits (either by primary/unique index or size
enforced by hoster).
--
Rik Wasmus
It's not saving to a database, it's creating a session file.

And as stated in my question there is no "hoster", it's my lan server,
and I'm the only one that touches it.

Mar 6 '07 #3
Rik
mrbog <dt******@hotmail.comwrote:
It's not saving to a database, it's creating a session file.
Then check why you cannot create the file.
And as stated in my question there is no "hoster", it's my lan server,
and I'm the only one that touches it.
Then it should be absolutely no trouble te check what logic you're using
to save sessions. Don't leave us guessing, check the code. Troubleshooting
without the code and a single incomplete error-message is not possible for
us.

--
Rik Wasmus
Posted on Usenet: any site claiming this as original content or me as an
contributing member is stealing content.
Ask Smart Questions: http://tinyurl.com/anel
Mar 6 '07 #4
On Mar 6, 12:34 am, Rik <luiheidsgoe...@hotmail.comwrote:
mrbog <dterr...@hotmail.comwrote:
It's not saving to a database, it's creating a session file.

Then check why you cannot create the file.
And as stated in my question there is no "hoster", it's my lan server,
and I'm the only one that touches it.

Then it should be absolutely no trouble te check what logic you're using
to save sessions. Don't leave us guessing, check the code. Troubleshooting
without the code and a single incomplete error-message is not possible for
us.

--
Rik Wasmus
Posted on Usenet: any site claiming this as original content or me as an
contributing member is stealing content.
Ask Smart Questions:http://tinyurl.com/anel
What code??

session_start()

There's the code.

WTF??

Mar 6 '07 #5
Rik
mrbog <dt******@hotmail.comwrote:
On Mar 6, 12:34 am, Rik <luiheidsgoe...@hotmail.comwrote:
>mrbog <dterr...@hotmail.comwrote:
It's not saving to a database, it's creating a session file.

Then check why you cannot create the file.
And as stated in my question there is no "hoster", it's my lan server,
and I'm the only one that touches it.

Then it should be absolutely no trouble te check what logic you're using
to save sessions. Don't leave us guessing, check the code.
Troubleshooting
without the code and a single incomplete error-message is not possible
for
us.

What code??

session_start()
session.save_handler = user means there's another handler then the default
files handler busy with maintaining sessions. The save handler that
actually does the work has code. That's the code that fails. That's the
code we don't know.

If you don't know what code does the handling, I seriously urge you to
take better care in putting up just anything on your lan server, and do a
server wide search in all files for the text 'session_set_save_handler'.

If there's no other session handler, setting session.save_handler to
anything other then files is just moronic.

--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel
Mar 6 '07 #6

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

Similar topics

13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
17
by: MLH | last post by:
A97 Topic: If there is a way to preserve the values assigned to global variables when an untrapped runtime error occurs? I don't think there is, but I thought I'd ask. During development, I'm...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
12
by: TristaSD | last post by:
Hi, Here's a nice footer I get inside every php page I write in wwwroot on my server. The code gets parsed just fine. I installed php5.2-win32 under W2K Server, IIS 5.0. I've installed php on...
3
by: Olav | last post by:
Hi all, I can not install CF 2.0 SP 1 on an Symbol PPT8800 running WinCE 4.2. The Install-Log say's cgacutil.exe failed with exit-code 80000004 and I get a messagebox indicating a support-Info...
1
by: ranju | last post by:
I am trying to spawn a process (say an exe file) with different user crendentials than that of the current user. 1) Called LogonUserEx() to logon the user and recieve a handle to the token that...
5
by: siyaverma | last post by:
Hi, I am new to php, i was doing some small chnages in a project developed by my collegue who left the job and i got the responsibility for that, After doing some changes when i run it on my...
1
by: RYKLOU | last post by:
I am kinda new to php, but i do know what i am doing kinda, but i came across this error when i am trying to upload a file to my website. Fatal error: Allowed memory size of 8388608 bytes...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.