Re: How to Register a Variable with $ _SESSION?
If register_globals is enabled, then each global variable can be registered as session variables, and all session variables will be reconstructed as global variables. Since PHP must know which global variables are registered as session variables, users need to register variables with session_register () while $ HTTP_SESSION_VARS and $ _SESSION does not require session_register (). You can remove a variable with $ _SESSION and register_globals disabled by using the following code :
PHP Code:
<?php
session_start ();
unset( $_SESSION [ 'count' ]);
?>
IF you hate me, please don't mention it. I know who hates me and who doesn't. You really do not have to make fun of people....
Bookmarks