Passing sessions

Hey Guys,

I am having problems getting a session to pass from the login page to the actual CMS.

  • I am using PHP5
  • I am using 1and1.com hosting services
  • I have done 2 other CMS’s with no problem until this 3rd one.

Here is the creation of the session on the login page:


session_start();
$_SESSION['username2009'] = $myusername;

Here is what tries to find that session on the second page:

session_start();
if(!$_SESSION['username2009']){
	echo "Wrong";
    exit();
}