Tuesday 5 July 2011

PHP creating a session

When creating a session you need to do the following:
session_name ('datebycupid');
session_start();
$_SESSION['user_email'] =  $user_email;

to check a session you need to do the following:

session_name('datebycupid');
 session_start();
 if(isset($_SESSION['user_email']))

Issues

Header already sent: check that the <?php tag has no leading whitespaces.