i dont no wats wrong with these code samples...
Code:
	session_name ('User');
	session_start();
	$_SESSION['username'] = 'testing';
	$_SESSION['loggedin'] = time();
		header ('Location: http://$_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/welcome.php');
		exit ();
		} else {
		echo '<p>The submittes username and password do not match those on file.<br />
		     Go back and try again.</p>';
and

Code:
<?php

session_start();
require ('header.php');

echo '<h3>Welcome to Distorted View, ' . ucfirst($_SESSION['username']) . '!</h3>;
echo '<p>You have been logged in since:<br /> ' . date ('g:i a', $_SESSION['loggedin']) . '</p>';

echo '<p><a href="logout.php" title="Log Out">Log Out</a></p>';

require ('footer.php');

?>
they both contain parse errors ( an unexpected T_STRING error in the first where the header (line 15ish)i s and an unexpected '>' in the second one (line 7ish))