Getting error like this...!

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
nadnakinam
Forum Newbie
Posts: 1
Joined: Wed Sep 23, 2009 11:50 pm

Getting error like this...!

Post by nadnakinam »

Solution needed...

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

Tnkx
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Getting error like this...!

Post by Christopher »

If you are using 5.3 then set error reporting to not include E_DEPRECATED.
(#10850)
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Getting error like this...!

Post by jackpf »

Or update your code.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Getting error like this...!

Post by onion2k »

Use..

Code: Select all

isset($_SESSION['var_name'])
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Getting error like this...!

Post by pickle »

Moved to PHP - Code
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Getting error like this...!

Post 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. ;)
(#10850)
Post Reply