test.php4
<?
session_start();
$var = "Hello";
session_register("var");
?>
This is page 1. Click <a href="test2.php4">here</a> to go to page 2.
test2.php4
<?session_start()?>
And your session variable is <?echo $var?> and your session id is <?echo
session_id()?>
<?session_destory()?>
This is programme that i see in mailing list and i use it to test, i work properly on test.php4. but i got this error when i click link to test2.php4 (my web server is iis4).
error:
Warning: Cannot send session cache limiter - headers already sent by (output started at D:\Bbis\test2.php4:12) in D:\Bbis\test2.php4 on line 12
And your session variable is Hello and your session id is e13bde5db62d1350da20d9641d3916c7
Fatal error: Call to undefined function: session_destory() in D:\Bbis\test2.php4 on line 15