i used:
<?php
// Initialize the session.
// If you are using session_name("something"),
session_start();
// Unset all of the session variables.
$_SESSION = array();
// Finally, destroy the session.
session_destroy();
?>
and i got the folwoing msg:
The order has been placed.
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/ugrad/ma101ss/public
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/ugrad/ma101ss/public
so i removed the start_session()and used:
// Unset all of the session variables.
$_SESSION = array();
// Finally, destroy the session.
session_destroy();
and got the msg:
Warning: session_destroy(): Trying to destroy uninitialized session in /home/ugrad/ma101ss/public
what am i doign wrong?
and in the code:
<?php
// Initialize the session.
// If you are using session_name("something"),
session_start();
// Unset all of the session variables.
$_SESSION = array();
// Finally, destroy the session.
session_destroy();
?>
wat does" // If you are using session_name("something"),
Main Topics
Browse All Topics





by: arantiusPosted on 2005-04-19 at 17:24:27ID: 13820632
$_SESSION=new array();
don't forget it now!
example from the PHP manual:
<?php
// Initialize the session.
// If you are using session_name("something"),
session_start();
// Unset all of the session variables.
$_SESSION = array();
// Finally, destroy the session.
session_destroy();
?>