I'm trying to register 3 variables in a session to be used for DB access through a number of pages/scripts. These ($login_1, $pwd_1 and $server-1) are passed with a POST operation from the login script to this script. This is what the script looks like:
Code: Select all
<?php
include 'includes.php';
session_register('login'); //this is line 9 in the script!!!
session_register('pwd');
session_register('server');
$login=$login_1;
$pwd = $pwd_1;
$server = $server_1;
....Code: Select all
Warning: Cannot send session cookie - headers already sent by (output started at c:\program files\apache group\apache\htdocs\test\main_2.php:7) in c:\program files\apache group\apache\htdocs\test\main_2.php on line 9
Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\test\main_2.php:7) in c:\program files\apache group\apache\htdocs\test\main_2.php on line 9
Warning: open(C:\Program Files\PHP\sessiondata\sess_3ef61267c3cd66e0961e4dccbe8ac993, O_RDWR) failed: No such file or directory (2) in c:\program files\apache group\apache\htdocs\test\main_2.php on line 9
Notice: Undefined variable: server_1 in c:\program files\apache group\apache\htdocs\test\main_2.php on line 14