Failed to write session data (files) [Solved]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Failed to write session data (files) [Solved]

Postby robah91 » 02. March 2013 20:09

Downloaded XAMPP for class, all default settings still. Ran a program that came with my book and got this error before changing anything:


[Sat Mar 02 13:09:05.397438 2013] [:error] [pid 2436:tid 1692] [client ::1:53433] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:C:\\xampp\\tmp) in Unknown on line 0, referer: http://localhost/chapter04/


Can't figure out how to change it, went through much of the settings/logs but couldn't find anything that would help me fix this.
robah91
 
Posts: 3
Joined: 02. March 2013 20:06
Operating System: Windows 7 64bit

Re: Failed to write session data (files)

Postby Altrea » 02. March 2013 20:31

robah91 wrote:
[Sat Mar 02 13:09:05.397438 2013] [:error] [pid 2436:tid 1692] [client ::1:53433] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:C:\\xampp\\tmp) in Unknown on line 0, referer: http://localhost/chapter04/

Your paths are screwed up.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Failed to write session data (files)

Postby robah91 » 02. March 2013 20:35

Altrea wrote:
robah91 wrote:
[Sat Mar 02 13:09:05.397438 2013] [:error] [pid 2436:tid 1692] [client ::1:53433] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:C:\\xampp\\tmp) in Unknown on line 0, referer: http://localhost/chapter04/

Your paths are screwed up.


I'm new to this, where might I fix the path?
robah91
 
Posts: 3
Joined: 02. March 2013 20:06
Operating System: Windows 7 64bit

Re: Failed to write session data (files)

Postby Altrea » 02. March 2013 20:39

robah91 wrote:I'm new to this, where might I fix the path?

There are several configuration files where the paths are setted. The question is WHY your paths are screwed up.
XAMPP comes with a batch file \xampp\setup_xampp.bat which normally is setting the paths correct.
So maybe it is enough to stop all your xampp components and run this batch script again.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Failed to write session data (files)

Postby robah91 » 02. March 2013 20:40

Nevermind! I found the php.ini file and was able to replace all C:C:'s with just C: and it works! Thanks for the help!
robah91
 
Posts: 3
Joined: 02. March 2013 20:06
Operating System: Windows 7 64bit

Re: Failed to write session data (files)

Postby Altrea » 02. March 2013 20:49

It is not only the php.ini file where paths are setted, also Apache, MySQL, ... configuration files.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 97 guests