By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,454 Members | 1,795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,454 IT Pros & Developers. It's quick & easy.

PHP/Apache server - session.save_path problem

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a

"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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.