Jump to content

Has anyone a good SIMPLE session example they could share?


todayme

Recommended Posts

I am also having problems, as you can see below.

 

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/admin/domains/sold.au.com/public_html/test8.php:2) in /home/admin/domains/sold.au.com/public_html/connectorexit.php on line 24

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/admin/domains/sold.au.com/public_html/test8.php:2) in /home/admin/domains/sold.au.com/public_html/connectorexit.php on line 24

 



// puts the "friends" info into the $info array 
$info = mysql_fetch_array( $data );
$accountsession = $info['ID']; 
session_start();
session_register($accountsession); 

   
if(mysql_num_rows($data) < 1)

	{
      			print "Authentication Failed";


							session_unset();
								session_destroy();

							print "Session Destroyed";


      					exit();








Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.