Page 1 of 1

Deprecated: Function session_register()

Posted: Sun Jun 26, 2011 10:42 pm
by Lphp
Hi all , I use php 5.3.1
I try to run some php programmer , I get the error Deprecated: Function session_register() I already set the register_globals to On
what else that I can do ,

Re: Deprecated: Function session_register()

Posted: Sun Jun 26, 2011 11:53 pm
by McInfo
First, register_globals should be off. If the PHP application does not work with it off, you should consider refactoring the application.

Second, session_register() is deprecated. You should use the $_SESSION superglobal array instead. All of this is explained in the manual.