clearing a session variable
Posted: Tue Jul 01, 2003 11:44 am
i have a session array which i declare like this
i then later add numbers to the session variable making it an array like this:
1. how do i clear the session variable? i have other sessions in the program, so i cannot use destroy(). i just want to clear the session values in stuid_list.
i tried
but it never worked
Code: Select all
<?php
session_register("stuid_list");
?>Code: Select all
<?php
$stuid_list[] = "$sib_stuid";
?>i tried
Code: Select all
<?php
session_unregister("stuid_list");
?>