ID: 5370 Updated by: yohgaki Old Summary: Session won't pass any variables in this platform. Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] Don't use the testing program I posted, I forgot it was tied to a database. ------------------------------------------------------------------------ [2002-01-12 03:46:20] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] no feedback, closed ------------------------------------------------------------------------ [2000-07-05 13:20:13] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]