473,386 Members | 1,823 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,386 software developers and data experts.

PHP/Apache server - session.save_path problem

Hello

I'm in desperate need of help. I can't get PHP sessions to work
because session.save_path isn't set for some reason. phpinfo() reports
that session.save_path = "No Value". I have WinXP Pro, Apache 2.0.55
and PHP 4.4.0 server configuration.

No matter what I put in session.save_path in php.ini, I just keeps
saying session.save_path = "No Value". Have tried "c:/windows/temp",
"c:\\windows\\temp", "c:/temp" with and without the quotes but to no
avail.

I've restarted Apache server each time after modifying the ini. Also
the php.ini path reported by phpinfo() seems point to the correct
file.

TIA.
Dec 14 '05 #1
3 9961

"Charlie" <us**@usa.net> wrote in message
news:rc********************************@4ax.com...
Hello

I'm in desperate need of help. I can't get PHP sessions to work
because session.save_path isn't set for some reason. phpinfo() reports
that session.save_path = "No Value". I have WinXP Pro, Apache 2.0.55
and PHP 4.4.0 server configuration.

No matter what I put in session.save_path in php.ini, I just keeps
saying session.save_path = "No Value". Have tried "c:/windows/temp",
"c:\\windows\\temp", "c:/temp" with and without the quotes but to no
avail.

I've restarted Apache server each time after modifying the ini. Also
the php.ini path reported by phpinfo() seems point to the correct
file.

TIA.


Make sure that you are editing the right php.ini

Dec 14 '05 #2
On Wed, 14 Dec 2005 20:41:43 +0100, "J2be" <in**@nospamj2be.com>
wrote:

"Charlie" <us**@usa.net> wrote in message
news:rc********************************@4ax.com.. .
Hello

I'm in desperate need of help. I can't get PHP sessions to work
because session.save_path isn't set for some reason. phpinfo() reports
that session.save_path = "No Value". I have WinXP Pro, Apache 2.0.55
and PHP 4.4.0 server configuration.

No matter what I put in session.save_path in php.ini, I just keeps
saying session.save_path = "No Value". Have tried "c:/windows/temp",
"c:\\windows\\temp", "c:/temp" with and without the quotes but to no
avail.

I've restarted Apache server each time after modifying the ini. Also
the php.ini path reported by phpinfo() seems point to the correct
file.

TIA.


Make sure that you are editing the right php.ini


phpinfo() says it's using the same ini I edited. There's no other
php.ini files on my system. Workaround that seems to work (albeit
ugly) is to call session_save_path() each time before session_start()
from the PHP script.
Dec 15 '05 #3
If you're using XP your windows directory is probably c:\winnt so use
the line session.save_path = c:/winnt/temp and make sure there is such
a directory. If not create it.
Charlie wrote:
On Wed, 14 Dec 2005 20:41:43 +0100, "J2be" <in**@nospamj2be.com>
wrote:

"Charlie" <us**@usa.net> wrote in message
news:rc********************************@4ax.com.. .
Hello

I'm in desperate need of help. I can't get PHP sessions to work
because session.save_path isn't set for some reason. phpinfo() reports
that session.save_path = "No Value". I have WinXP Pro, Apache 2.0.55
and PHP 4.4.0 server configuration.

No matter what I put in session.save_path in php.ini, I just keeps
saying session.save_path = "No Value". Have tried "c:/windows/temp",
"c:\\windows\\temp", "c:/temp" with and without the quotes but to no
avail.

I've restarted Apache server each time after modifying the ini. Also
the php.ini path reported by phpinfo() seems point to the correct
file.

TIA.


Make sure that you are editing the right php.ini


phpinfo() says it's using the same ini I edited. There's no other
php.ini files on my system. Workaround that seems to work (albeit
ugly) is to call session_save_path() each time before session_start()
from the PHP script.


Dec 17 '05 #4

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

Similar topics

4
by: Cooper | last post by:
hello, i have problem with session, reading on the manual of php.net, i have understood that: PAGE1.PHP: session_start (); $_SESSION = myVarValue; and for read in:
2
by: Charon | last post by:
I am running php 4.3.4 Win 32 as a module with Apache 1.3.29. I am trying show this modification in the php.ini file session.save_path = C:\PHP\phpsessiondata But when I restart then then go...
3
by: Arne Morken | last post by:
I'm unable to get sessions to work properly with the combination Apache 2.0.49 / PHP 4.3.6 / Windows XP. The data is written to the correct place (according to php.ini), but they are not read in...
2
by: Damien | last post by:
Hi to all, I'm currently re-designing our intranet : nice and lean CSS2, cleaned-up PHP 4.3.7, better-normalized MySQL ;o). So I've started using the $_SESSION variable instead of register_globals...
1
by: neilphan | last post by:
Hi guys, I'm using PHP and Apache. How do you configure Apache so that it allows the use of php and session data. I get the following error: Warning: session_start():...
1
by: mudge | last post by:
I'm running PHP Version 4.3.10. I'm trying to make it so that when a person logs in using a user name and password that their session is valid and continues for a few months so they don't have to...
0
by: Jootec from Mars | last post by:
For about a month now I've been ripping my hair out and cussing a lot as to why PHP4 running on my Win2K dev box has not been writing the $_SESSION variable correctly to session.save_path at the...
0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
5
by: voronwae | last post by:
Hi folks. Either I'm missing something really obvious (most likely) or I'm missing something really subtle. I've been building up a machine as an IMP webmail server, with php 5.1.2, cyrus-sasl,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...

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.