Bug #5370 Updated: Session won't pass any variables in this platform.
| From: | yohgaki@php.net | Date: | Sun, 13 Jan 2002 01:57:32 +0000 |
| Subject: | Bug #5370 Updated: Session won't pass any variables in this platform. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76833@lists.php.net to get a copy of this message | ||
ID: 5370
Updated by: yohgaki
Old Summary: Session won't pass any variables in this platform.
Reported By: eggli@giga.net.tw
Old Status: Closed
Status: Feedback
Bug Type: Session related
Operating System: Windows 98
PHP Version: 4.0.1pl2
New Comment:
What kind of FAT file system are you using?
(i.e. Does the file system support modified time?)
I believe you are using newer PHP, don't you? Please update Version
field.
PS: Change status to "Open" if you reopen bug report :)
Previous Comments:
------------------------------------------------------------------------
[2002-01-12 04:25:08] fbo@qwest.net
Don't use the testing program I posted, I forgot it was tied to a
database.
------------------------------------------------------------------------
[2002-01-12 03:46:20] fbo@qwest.net
I get these 3 warnings on Windows 98 4.10.2222A, Apache 1.3.14, PHP
4.0.3pl1:
Warning: open(\tmp\sess_906cf0440e666cf0f87ea4bbee139c97, O_RDWR)
failed: m (2) in c:\program files\Apache
Group\Apache\htdocs/session2.php on line 2
Warning: open(\tmp\sess_906cf0440e666cf0f87ea4bbee139c97, O_RDWR)
failed: m (2) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (\tmp) in Unknown on
line 0
The following solved the problem:
Make sure you are editing the php.ini file found in the Php\ directory,
not in the windows\ directory.
Set the session.save_path to an absolute path, relative paths (like
/tmp) don't work.
For example:
session.save_path = C:\Program Files\Apache Group\Apache\htdocs\tmp
I used this prog for testing:
<?php
session_start();
session_register("your_name");
if(!empty($your_name))
{
echo "I already know your name, $your_name";
}
elseif(empty($your_name)&&!isset($submit))
{
echo "<form name=myform method=post action=$PHP_SELF>
<input type=text name=first_name> first name<br>
<input type=text name=last_name> last name<br>
<input type=submit name=submit value=submit>
</form>";
}
elseif(isset($submit)&&empty($your_name))
{
$your_name=$first_name . " " . $last_name;
echo "Thank you, $your_name";
}
?>
------------------------------------------------------------------------
[2000-08-01 22:43:39] waldschrott@php.net
no feedback, closed
------------------------------------------------------------------------
[2000-07-05 13:20:13] stas@cvs.php.net
Also, what happens if you set enable_cookies to ON?
And try also:
printf('<a
href="script.php?%s">Link</a>',
session_id());
------------------------------------------------------------------------
[2000-07-05 13:16:27] stas@cvs.php.net
Does it happen on other win32 platforms too?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=5370
Edit this bug report at http://bugs.php.net/?id=5370&edit=1