Deprecated: Function session_register()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lphp
Forum Commoner
Posts: 74
Joined: Sun Jun 26, 2011 9:56 pm

Deprecated: Function session_register()

Post 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 ,
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Deprecated: Function session_register()

Post 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.
Post Reply