//At the top of both scripts (Facebook and login_page.php) add the follow: if(!session_id()) { session_start(); }