473,792 Members | 3,076 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_ha ndler = user

to

session.save_ha ndler = 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 7656
Rik
mrbog <dt******@hotma il.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_ha ndler = user

to

session.save_ha ndler = 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.comwro te:
mrbog <dterr...@hotma il.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_ha ndler = user
to
session.save_ha ndler = 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******@hotma il.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.comwro te:
mrbog <dterr...@hotma il.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******@hotma il.comwrote:
On Mar 6, 12:34 am, Rik <luiheidsgoe... @hotmail.comwro te:
>mrbog <dterr...@hotma il.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.
Troubleshootin g
without the code and a single incomplete error-message is not possible
for
us.

What code??

session_start()
session.save_ha ndler = 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_sa ve_handler'.

If there's no other session handler, setting session.save_ha ndler 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
6618
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
4756
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 appreciated. Thanks in advance
17
5634
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 constantly running tests on imperfect code. On of the cumbersome jobs encountered is reassigning global vars their values after a close encounter with an untrapped runtime error. Rather than writing a procedure to simply reassign them all with a...
7
5026
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. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version, which I did, then reran WebSetup.msi and keeps giving me this error. "The installer was interrupted...
12
3014
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 XP machines before, no problems there. Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0 Cannot find module (IP-MIB): At line 0 in (none) Cannot find module
3
4333
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 '3'. This would mean I would not have enough space on my device. But I hard-reseted it befor I tryed to install and I have no other processes running while installing. Any ideas, whats going wrong???
1
7470
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 represents the logged-on user. 2) Called ImpersonateLoggedOnUSer() to let the calling thread impersonate the security context of logged on user. 3) Used CreateEnvironmentBlock() to get lpEnv
5
7194
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 local server it was working fine but giving some errors those are Notice: Undefined index: phplogin in C:\Inetpub\wwwroot\sampleft\index.php on line 116 Notice: Undefined variable: username in C:\Inetpub\wwwroot\sampleft\index.php on line 116 ...
1
2937
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 exhausted (tried to allocate 3714000 bytes) in /opt/lampp/htdocs/tutorials/php-mysql-tutorial/admin/image-gallery/library/functions.php on line 104 Platform: Ubuntu 8.04 LST (where i make my programs, and test them before i upload them), Using XAMPP for...
0
9518
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10430
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10211
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10159
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9033
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2917
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.