ID:               24410
 User updated by:  tommy_in_japan at nospam dot hotmail dot com
 Reported By:      tommy_in_japan at nospam dot hotmail dot com
 Status:           Open
 Bug Type:         IIS related
 Operating System: Win XP Professional
 PHP Version:      4.3.2
 New Comment:

I see the problem now...the save path was pointing to the wrong
directory (as you suggested).  Thanks again!


Previous Comments:
------------------------------------------------------------------------

[2003-06-30 15:35:43] tommy_in_japan at nospam dot hotmail dot com

For some reason, it reported the session.save_path directory as "/tmp".
 I created a c:\tmp directory and now session variables seem to work
fine.  Any idea why the settings I have in php.ini aren't being
recognized?

Thanks for your help.

------------------------------------------------------------------------

[2003-06-30 13:01:21] postings-php-bug at hans-spath dot de

When you execute a script containing "<? phpinfo(); ?>", does the line
"Configuration File (php.ini) Path" return the correct path?

------------------------------------------------------------------------

[2003-06-30 10:30:56] tommy_in_japan at nospam dot hotmail dot com

Description:
------------
I've tried everything (I think), and can't get PHP to store any session
data.  I specified a session data directory that the web server has
read/write permissions for, and the session arrays get modified on the
page where the variables are set, yet nothing gets written to disk (and
therefore not passed to any other pages, from which I can't reference
the variables).

PHP.ini settings:
session.save_handler = files
session.save_path = c:/temp
;note: "c:\temp" and "/temp" etc. also do not work
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.cache_expire = 180

Reproduce code:
---------------
[test.php]
session_start();
$_SESSION["test"] = "test";

echo $_SESSION["test"];
//works fine, but when referencing in any other file
//(via redirect or anything else)...

[test2.php]
session_start();
echo $_SESSION["test"];
//returns nothing



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24410&edit=1

Reply via email to