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