In php4.30 , register_globals = off
If you want your script to work regardless of register_globals, you need to use the $SESSION array. All $SESSION entries are automatically registered. If your script uses session_register(), it will not work in environments where register_globals is disabled.
My problem is, when I use the $_SESSION array in the user define function whether or not announce global? help me ! thanks!!