Following are differences between session_register and $_SESSION
1. session_register function returns boolean value, whereas $_SESSION returns string value.
2. session_register function does'nt work if register_global is disabled. $_SESSION works in both case whether register_global is disabled or enabled.
So using $_SESSION for session variable manipulation is more appropriate.
No comments:
Post a Comment