PHP

Topic: Sessions

What is the difference between session_register and $_session?

Following are differences between session_register and $_SESSION1. session_register function returns boolean value and $_SESSION returns string value2. 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. 

Browse random answers: