Solution needed...
" Deprecated: Function sess_is_registered() is deprecated inC:/..../--.php on line -- "
Tnkx
Getting error like this...!
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Getting error like this...!
If you are using 5.3 then set error reporting to not include E_DEPRECATED.
(#10850)
Re: Getting error like this...!
Or update your code.
Re: Getting error like this...!
Use..
Code: Select all
isset($_SESSION['var_name'])Re: Getting error like this...!
Moved to PHP - Code
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Getting error like this...!
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.onion2k wrote:Use..
Code: Select all
isset($_SESSION['var_name'])
(#10850)