set the session.save_path directive in php.ini file.. By default this is set to /tmp but as u working on win mchine please create a session directory and specify the corresponding path to aforesaid directive.
Cheers Binay ----- Original Message ----- From: "ajay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 16, 2004 9:57 AM Subject: [PHP] error : session_start > hi! > > i have a login page that after validating the login and passwords does something > like > // initiate a session > session_start(); > > // register some session variables > session_register("SESSION"); > > // including the username > session_register("SESSION_UNAME"); > $SESSION_UNAME = $login; > > // redirect to protected page > header("Location:manager.php"); > > when i try to run this at home with my apache 1.3.27 i get the following errors: > > Warning: session_start() [function.session-start]: > open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d, O_RDWR) failed: No such file or > directory (2) in c:\program files\apache > group\apache\htdocs\usydbasketball\login.php on line 16 > > Warning: session_start() [function.session-start]: Cannot send session cookie - > headers already sent by (output started at c:\program files\apache > group\apache\htdocs\usydbasketball\login.php:16) in c:\program files\apache > group\apache\htdocs\usydbasketball\login.php on line 16 > > Warning: session_start() [function.session-start]: Cannot send session cache > limiter - headers already sent (output started at c:\program files\apache > group\apache\htdocs\usydbasketball\login.php:16) in c:\program files\apache > group\apache\htdocs\usydbasketball\login.php on line 16 > > Warning: Cannot modify header information - headers already sent by (output > started at c:\program files\apache > group\apache\htdocs\usydbasketball\login.php:16) in c:\program files\apache > group\apache\htdocs\usydbasketball\login.php on line 26 > > Warning: Unknown(): Your script possibly relies on a session side-effect which > existed until PHP 4.2.3. Please be advised that the session extension does not > consider global variables as a source of data, unless register_globals is > enabled. You can disable this functionality and this warning by setting > session.bug_compat_42 or session.bug_compat_warn to off, respectively. in > Unknown on line 0 > > Warning: Unknown(): open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d, O_RDWR) > failed: No such file or directory (2) in Unknown on line 0 > > Warning: Unknown(): Failed to write session data (files). Please verify that the > current setting of session.save_path is correct (/tmp) in Unknown on line 0 > > > can someone please help > > thanks > > regards > > -- > ajay > --------------- > Who Dares Wins > > ------------------------------------------------- > This mail sent through IMP: www-mail.usyd.edu.au > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php