im using the global session variable $_SESSION.
i have 10 or so variables stored in it.
i want to delete 2 variables in it.ie
$SESSION['name']; $SESSION['password'];
can i use session_unregister with $_SESSION?
you really should learn to consult the manual. http://www.php.net/manual/en/function.session-unregister.php
If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset() to unregister a session variable. If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister().
If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset() to unregister a session variable.
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister().