error : session_start

From: Date: Mon, 16 Feb 2004 04:27:21 +0000
Subject: error : session_start
Groups: php.general 
Request: Send a blank email to php-general+get-177769@lists.php.net to get a copy of this message
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

« previous php.general (#177769) next »