Look at your session.save_path line: session.save_path .c:/php/sessions/tmp .c:/php/sessions/tmp
Change this to c:\php\sessions\tmp and you'll find yourself without a problem (as long as that directory exists. The dot in front of the pathname is most likely failing the script. session.save_path = c:\temp That's mine. -Dash -----Original Message----- From: Charlie Fowler [mailto:charlie@;rahinston.com] Sent: Tuesday, November 12, 2002 3:20 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-WIN] Problem with sessions Hi all,, Can some one help me with this little issue ... I am trying out some prewritten scripts curtesy of SAMS PHP and MYSQL Web Development, Ch24 - User Authenication & Personalisation on my server setup The Configuartion for my development environment is Apache 2.39, Win 2000, PHP 4.2.3 The Ini file has the following session settings (as taken from PHPInfo.php): session Session Support enabled Directive Local Value Master Value session.auto_start Off Off session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path .c:/php/sessions/tmp .c:/php/sessions/tmp session.serialize_handler php php session.use_cookies On On session.use_trans_sid 0 0 The error occurs after the registration page is submitted with the following using the function session_start() on the register page.: Warning: open(.c:/php/sessions/tmp\sess_fa42372dcdbde0e457309f134d71827f, O_RDWR) failed: Invalid argument (22) in C:\Program Files\Apache Group\Apache2\htdocs\SAMS\Chapter24\member.php on line 5 I believe the problem is in my PHP setup and not the script. The Invalid arguement is the trigger for the config error to be initaited but I am not sure how to edit the php.ini file. I want to ensure that session are started when the server is started. I am also unsure of the function and terminology of session.save_handler files files with the use of "files". Is this the correct default. Also is this the correct session save path: session.save_path .c:/php/sessions/tmp .c:/php/sessions/tmp What is wrong, please help. Charlie -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php