Page 1 of 1

Session

Posted: Wed Jun 13, 2007 5:15 am
by shivam0101
Hello,

I saw this code in the web,

Code: Select all

session_register("ClientID");
$ClientID=$client_id;
In the above code, ClientID is different from $ClientID? What is the purpose of registering? Is it any different from $_SESSION['ClientID']=$client_id?

Thanks

Posted: Wed Jun 13, 2007 5:56 am
by volka
session_register is deprecated, don't use it anymore. Use $_SESSION instead.