session destroy and unset
Posted: Mon May 24, 2004 2:55 pm
<?php
session_name();
session_start("customerid");
session_start("firstname");
session_start("lastname");
if(!(session_is_registered("customerid")))
{
session_unset();
session_destroy();
session_start("guest");
$guest = "Guest";
session_register("guest");
}
how can i destroy the session only for the guest ? but not customerid ?
or once the session_unset() and session_destroy() is call all the session variable will lost?
session_name();
session_start("customerid");
session_start("firstname");
session_start("lastname");
if(!(session_is_registered("customerid")))
{
session_unset();
session_destroy();
session_start("guest");
$guest = "Guest";
session_register("guest");
}
how can i destroy the session only for the guest ? but not customerid ?
or once the session_unset() and session_destroy() is call all the session variable will lost?