Page 1 of 1

Getting error like this...!

Posted: Wed Sep 23, 2009 11:57 pm
by nadnakinam
Solution needed...

" Deprecated: Function sess_is_registered() is deprecated inC:/..../--.php on line -- "

Tnkx

Re: Getting error like this...!

Posted: Thu Sep 24, 2009 1:41 am
by Christopher
If you are using 5.3 then set error reporting to not include E_DEPRECATED.

Re: Getting error like this...!

Posted: Thu Sep 24, 2009 7:40 am
by jackpf
Or update your code.

Re: Getting error like this...!

Posted: Thu Sep 24, 2009 8:49 am
by onion2k
Use..

Code: Select all

isset($_SESSION['var_name'])

Re: Getting error like this...!

Posted: Thu Sep 24, 2009 11:50 am
by pickle
Moved to PHP - Code

Re: Getting error like this...!

Posted: Thu Sep 24, 2009 6:58 pm
by Christopher
onion2k wrote:Use..

Code: Select all

isset($_SESSION['var_name'])
Yes, session_register(), session_is_registered() and session_unregister() are all deprecated and will be removed in 6.0. The manual has some nice information about this! Another example of functions that were a bad idea in the first place being removed. ;)