PHP 4.3.1
Apache 2.0
MySql 3.23.49
Ok now, what I want to do, is create sessions for every page that opens. I know I have to do this by using
Code: Select all
<?php
session_start();
if(isset($_POST['Username'])=='username' and $_POST['Password'] == 'password')
{
$_SESSION['Loggedin'] = True;
}
if(!isset($Post['Username']) and $_POST['Password'])
{
print ("Username/Password Incorrect. Please Retry...");
}
?>Code: Select all
session_start();However, when I try and use this method, I get the following errors :
Code: Select all
Warning: session_start() їfunction.session-start]: open(/tmp\sess_4abeb9d0dfefce8c6931aec310ed6df5, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\login2.php on line 2
Warning: session_start() їfunction.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\login2.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\login2.php on line 2
Warning: session_start() їfunction.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\login2.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\login2.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\login2.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\login2.php on line 22
Warning: Unknown(): open(/tmp\sess_4abeb9d0dfefce8c6931aec310ed6df5, 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 0Now, I have no idea what all this means.... Can anyone please explain this part that the sticky topic, NOR the manual explains? thanks...
